|
Running under Mac Os X. How to fix: java.lang.NullPointerException problem |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Running under Mac Os X. How to fix: java.lang.NullPointerException problem
Hi Forum.
First thanks for reading. I was all morning searching on Google how to solve the now classic java.lang.NullPointerException under Mac Os X and I could find anything helpful. I would like to open a post where you guys can describe how to run JDowloader over Mac. I will start posting what I have gather and then I would like somebody tell me how to continue in a detailed way if possible. First I have downloaded the JDownloader 0.6.1. I unzip it and I execute JDownloader.jar. - At this point I get a message error. - So I open a terminal window (Applications/Utilities/Terminal.app) and I navigate to the folder where I have the Jdowloader unzipped. - I Execute: sudo java -jar JDowloader.jar Once I do this I get the follow log: Code:
$ sudo java -jar JDownloader.jar 12-jul-2009 12:53:39 - INFO [jd.Main(initMACProperties)] -> apple.laf.useScreenMenuBar=true 12-jul-2009 12:53:39 - INFO [jd.Main(initMACProperties)] -> com.apple.mrj.application.growbox.intrudes=false 12-jul-2009 12:53:39 - INFO [jd.Main(initMACProperties)] -> com.apple.mrj.application.apple.menu.about.name=jDownloader JAR 12-jul-2009 12:53:39 - LA M?S FINA [jd.utils.JDUtilities(getJDClassLoader)] -> Create Classloader: for: /Applications/JDownloader 0.6.1 12-jul-2009 12:53:39 - LA M?S FINA [jd.JDClassLoader(<init>)] -> rootDir:/Applications/JDownloader 0.6.1 /Applications/JDownloader 0.6.1 file:/Applications/JDownloader%200.6.1/jd 12-jul-2009 12:53:39 - M?S FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /Applications/JDownloader 0.6.1/plugins/JDChat.jar 12-jul-2009 12:53:39 - M?S FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /Applications/JDownloader 0.6.1/plugins/JDHJMerge.jar 12-jul-2009 12:53:39 - M?S FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /Applications/JDownloader 0.6.1/plugins/JDShutdown.jar 12-jul-2009 12:53:39 - M?S FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /Applications/JDownloader 0.6.1/plugins/JDTray.jar 12-jul-2009 12:53:39 - M?S FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /Applications/JDownloader 0.6.1/plugins/JDUnrar.jar 12-jul-2009 12:53:39 - M?S FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /Applications/JDownloader 0.6.1/JDownloader.jar 12-jul-2009 12:53:39 - INFO [jd.Main(main)] -> Start JDownloader 12-jul-2009 12:53:39 - ADVERTENCIA [jd.Main(heapCheck)] -> Heapcheck: Not enough heap. use: java -Xmx512m -jar JDownloader.jar 12-jul-2009 12:53:39 - INFO [jd.Main(main)] -> init Eventmanager 12-jul-2009 12:53:39 - M?S FINA [jd.config.DatabaseConnector(<init>)] -> Loading database 12-jul-2009 12:53:39 - M?S FINA [jd.config.DatabaseConnector(checkDatabaseHeader)] -> Checking database 12-jul-2009 12:53:39 - GRAVE [jd.controlling.JDLogger(exception)] -> SEVERE Exception occurred java.sql.SQLException: Database broken! at jd.config.DatabaseConnector.<init>(Unknown Source) at jd.utils.JDUtilities.getDatabaseConnector(Unknown Source) at jd.config.SubConfiguration.<init>(Unknown Source) at jd.config.SubConfiguration.getConfig(Unknown Source) at jd.utils.JDLocale.getLocaleString(Unknown Source) at jd.utils.JDLocale.L(Unknown Source) at jd.controlling.interaction.Interaction.initTriggers(Unknown Source) at jd.Main.main(Unknown Source) 12-jul-2009 12:53:39 - GRAVE [jd.utils.JDUtilities(getDatabaseConnector)] -> Database broken! Creating fresh Database 12-jul-2009 12:53:39 - M?S FINA [jd.config.DatabaseConnector(<init>)] -> Loading database 12-jul-2009 12:53:40 - M?S FINA [jd.config.DatabaseConnector(<init>)] -> No configuration database found. Creating new one. 12-jul-2009 12:53:40 - M?S FINA [jd.config.DatabaseConnector(<init>)] -> Starting database wrapper Loaded language: english 12-jul-2009 12:53:40 - INFO [jd.Main(main)] -> init Localisation Exception in thread "main" java.lang.NullPointerException at jd.Main.increaseSplashStatus(Unknown Source) at jd.Main.main(Unknown Source) - So I what the say here: http://java.com/en/download/apple_ma...st=java.com:80 - I found that there is no updates. The version that I have is: Code:
$ java -version java version "1.5.0_19" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304) Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing) - In some other post I found that I should do: Code:
update-alternatives --config java. I also read in other post that If you put some packages missing from the older version, this might work... But they didn't say which packages and how it should be done. At this point I'm and I can't figure out how to run JDownloader. Can anybody help? Thanks in advance. Last edited by buggsy; 12.07.2009 at 13:45. |
#2
|
|||
|
|||
You're probably running jD on a older PowerPC Mac. For these older machines there exists no JRE 6.
Did you try to start up jD with the following command (see your log) : java -Xmx512m -jar JDownloader.jar |
#3
|
|||
|
|||
Hi Remi!
Thanks for answering. I have the new Intel Mac and I have for sure the latest version of Java because I have follow the instructions from Java web site: http://java.com/en/download/manual.jsp#app Anyway, I was searching in some tutorials and they say that in the download page there is a .dmg. I couldn't find it. There is just a ZIP. Maybe they have change the distribution in the latest version and something wrong is going on. I will try what you've suggested, but I'm not sure that increasing the memory of the Java virtual machine would help to solve an "Exception in thread "main" java.lang.NullPointerException". Hopefully I'm wrong because I was looking forward to use JD. Also, I have read in some forums that there are missing some files that they are in the previous versions. May can help if I install the any previous version. Unfortunately, in the Download section there are no other versions anymore. Remi, again: Thanks a lot for helping. |
#4
|
|||
|
|||
I have found the previous revisions here: http://jdownloader.net:8081/download/index?do=revisions
But when I follow the dmg links for mac, all of them are broken and they just forward me to the main page of **External links are only visible to Support Staff****External links are only visible to Support Staff**, which is in German and I don't understand anything. |
#5
|
|||
|
|||
I understand you're looking for a previous version for Mac.
I don't know whether it will help you, but someone posted this link :- hxxp://ugotfile.com/file/184784/jDownloader-MAC-0.5.917.zip Last edited by remi; 18.09.2009 at 14:03. |
#6
|
|||
|
|||
It worked with the older version!
Thanks remi. |
|
|