JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 12.07.2009, 13:42
buggsy buggsy is offline
BugMeNot Account
 
Join Date: Mar 2009
Location: everywhere/nowhere
Posts: 1,120
Question 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)
I read some posts were the said that I have to update the java.
- 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)
Which is weird because in some posts said that the last one is 1.6.

- In some other post I found that I should do:
Code:
update-alternatives --config java.
But still doesn't work.

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.
Reply With Quote
  #2  
Old 13.07.2009, 12:58
remi
Guest
 
Posts: n/a
Cool

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
Reply With Quote
  #3  
Old 14.07.2009, 11:42
buggsy buggsy is offline
BugMeNot Account
 
Join Date: Mar 2009
Location: everywhere/nowhere
Posts: 1,120
Default

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.

Quote:
Originally Posted by remi View Post
java -Xmx512m -jar JDownloader.jar
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.
Reply With Quote
  #4  
Old 14.07.2009, 11:49
buggsy buggsy is offline
BugMeNot Account
 
Join Date: Mar 2009
Location: everywhere/nowhere
Posts: 1,120
Unhappy

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.
Reply With Quote
  #5  
Old 14.07.2009, 13:40
remi
Guest
 
Posts: n/a
Cool

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.
Reply With Quote
  #6  
Old 28.07.2009, 19:44
buggsy buggsy is offline
BugMeNot Account
 
Join Date: Mar 2009
Location: everywhere/nowhere
Posts: 1,120
Default

It worked with the older version!

Thanks remi.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:03.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.