runtime-error

Could not find main class error [duplicate]

孤人 提交于 2019-12-14 03:34:48
问题 This question already has answers here : How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version (48 answers) Closed 6 years ago . My class path in environment variables are set to C:\WINDOWS\system32;C:\Program Files (x86)\Java\jdk1.7.0_25\bin I can compile fine, but I get an error when I try to run the java file. Exception in thread "main" java.lang.UnsupportedClassVersionError: ASILogger : U nsupported major.minor version 51.0 at java.lang.ClassLoader

Working on emulator, not on the device or another emulator. The set target is correct [closed]

旧巷老猫 提交于 2019-12-14 03:31:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . here is the logCat file: 11-25 01:53:50.047: E/Trace(26246): error opening trace file: No such file or directory (2) 11-25 01:53:50.057: D/ActivityThread(26246): setTargetHeapUtilization:0.25 11-25 01:53:50.057: D/ActivityThread(26246): setTargetHeapIdealFree:8388608 11-25 01:53:50.057: D/ActivityThread(26246):

Runtime error ,When activity start(Activity about listView)

折月煮酒 提交于 2019-12-14 03:17:57
问题 This activity is receive value from db.select andthen i put some value to show in the listview model .And i don't know ,how to repair it.If you want more information please tell This is my runtimeError edit when intialize 08-21 21:23:36.047: E/AndroidRuntime(408): FATAL EXCEPTION: main 08-21 21:23:36.047: E/AndroidRuntime(408): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sqlite/com.example.sqlite.FriendsListActivity}: java.lang.NullPointerException 08-21 21

PEAR::Mail Notice Strict Standards error

孤人 提交于 2019-12-14 03:17:56
问题 Installed PEAR Mail library and really like how it works, much better than PHP mail() function. However, I'm getting the strict standards notices showing up in the error_log with every mail sent. They're not fatal, but making a mess of the log. Here is the controlling code: $body = $_POST['message']; //using sendmail on backend $params['sendmail_path'] = '/usr/sbin/sendmail'; //using factory method $mail_object =& Mail::factory('sendmail',$params); //loop through selected users to send for (

Python web scraping [Error 10060]

拈花ヽ惹草 提交于 2019-12-14 03:13:51
问题 I am struggling to get my code, that scrapes HTML table info from web, to work through a list of websites held in ShipURL.txt file. The code reads in the web page addresses from ShipURL and then goes to the link and downloads the table data and saves it to csv. But my problem is that the program cannot finish, as the error " A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has

java: Read text file and store the info in an array using scanner class

只愿长相守 提交于 2019-12-14 00:33:55
问题 I have a text file include Student Grades like: Kim $ 40 $ 45 Jack $ 35 $ 40 I'm trying to read this data from the text file and store the information into an array list using Scanner Class. Could any one guide me to write the code correctly? Code import java.io.*; import java.util.*; public class ReadStudentsGrade { public static void main(String[] args) throws IOException { ArrayList stuRec = new ArrayList(); File file = new File("c:\\StudentGrade.txt"); try { Scanner scanner = new Scanner

NZEC runtime error in Java

大城市里の小女人 提交于 2019-12-13 23:24:26
问题 This is my code. Please check it where it is giving runtime exception. I wrote a piece of code to solve this problem. I keep getting NZEC(runtime error), but I can't find which part of the code can cause any Exception since it only involves simple arithmetic computation (there should be no chance of divided by zero). The logic of the code doesn't matter, and I just wonder where the exception could be hiding. Any one can spot any bug? Thanks. import java.io.BufferedReader; import java.io.File;

Is atoi multithread safe? [closed]

感情迁移 提交于 2019-12-13 23:23:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am experiancing some error while creating a multithreaded program. While using gdb to debug, the atoi function is throwing error. Please help, is atoi multithread unsafe and if so, what are the alternatives? 回答1: Its quite easy to implement a replacement for atoi(): int strToInt(const char *text) { int n = 0,

SQL table not found exception

流过昼夜 提交于 2019-12-13 22:26:05
问题 i have made a table and its fields but i get error that no such row exist and if i comment them out then it is not detecting the table also showing no such table exist.Here's the code: package com.example.ifest; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DBHandler extends SQLiteOpenHelper{ private static final String DB_NAME = "event_db"; private static final int DB_VERSION = 1; private static

Application.Run() leads to application hanging

戏子无情 提交于 2019-12-13 21:24:41
问题 When I start application without specific form e.g. Application.Run(); And then I create form, after user closes it, the process just hangs. This happens outside of Visual Studio. I tried to put Application.Exit() and/or Application.ExitThread() in form's Form_Closing event, but it still hangs. Edit: Using custom ApplicationContext unfortunately doesn't work. FYI, I'm not using any threads nor BackgroundWorkers. 回答1: Use Tools + Attach to Process to attach the debugger to the hung process.