JDownloader only as root

Hello all…
I am using the beautiful JDownloader application, wich is programmed in
java. My problem is, I can run it only as root with:

Code:

#java -jar JDownloader.jar

but if I do that as a local user, it loads some stuff but the window
doesn’t appear and I can’t use it…

this is what i get:

Code:

> java -jar JDownloader.jar
05-ene-2009 19:20:24 - INFO [jd.config.DatabaseConnector(<init>)] -> Loading database
05-ene-2009 19:20:24 - INFO [jd.config.DatabaseConnector(checkDatabaseHeader)] -> Checking database
05-ene-2009 19:20:24 - INFO [jd.config.DatabaseConnector(backupDatabase)] -> Backup Database
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> java.io.FileNotFoundException: /home/angel/Programas/JDownloader/config/database.script.backup (Permission denied)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.io.FileOutputStream.open(Native Method)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.nutils.io.JDIO.copyFile(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.DatabaseConnector.backupDatabase(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.DatabaseConnector.checkDatabaseHeader(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.DatabaseConnector.<init>(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.utils.JDUtilities.getDatabaseConnector(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.SubConfiguration.<init>(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.utils.JDUtilities.getSubConfig(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.Main.main(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> java.sql.SQLException: File input/output error: /home/angel/Programas/JDownloader/config/database.log
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at org.hsqldb.jdbcDriver.connect(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.sql.DriverManager.getConnection(DriverManager.java:582)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.sql.DriverManager.getConnection(DriverManager.java:185)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.DatabaseConnector.<init>(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.utils.JDUtilities.getDatabaseConnector(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.SubConfiguration.<init>(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.utils.JDUtilities.getSubConfig(Unknown Source)
05-ene-2009 19:20:24 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.Main.main(Unknown Source)
05-ene-2009 19:20:24 - INFO [jd.utils.JDUtilities(getJDClassLoader)] -> Create Classloader: for: /home/angel/Programas/JDownloader
05-ene-2009 19:20:24 - FINA [jd.JDClassLoader(<init>)] -> rootDir:/home/angel/Programas/JDownloader
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/plugins/JDLightTray.jar
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/plugins/JDChat.jar
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/plugins/JDHJMerge.jar
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/plugins/JDRouterRecorder.jar
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/plugins/JDUnrar.jar
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/restore.jar
05-ene-2009 19:20:24 - MÁS FINA [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/angel/Programas/JDownloader/JDownloader.jar
05-ene-2009 19:20:25 - INFO [jd.utils.JDSounds(setSoundTheme)] -> SoundTheme default loaded
05-ene-2009 19:20:25 - INFO [jd.Main(go)] -> Register plugins
05-ene-2009 19:20:25 - MÁS FINA [jd.JDInit(loadImages)] -> Loaded image: jd_logo_large from file:/home/angel/Programas/JDownloader/jd/img/jd_logo_large.png
05-ene-2009 19:20:25 - MÁS FINA [jd.JDInit(loadImages)] -> Loaded image: jd_logo from file:/home/angel/Programas/JDownloader/jd/img/jd_logo.png
05-ene-2009 19:20:25 - MÁS FINA [jd.JDInit(loadImages)] -> Loaded image: led_empty from file:/home/angel/Programas/JDownloader/jd/img/led_empty.gif
05-ene-2009 19:20:25 - MÁS FINA [jd.JDInit(loadImages)] -> Loaded image: led_green from file:/home/angel/Programas/JDownloader/jd/img/led_green.gif
05-ene-2009 19:20:25 - MÁS FINA [jd.JDInit(loadImages)] -> Loaded image: jd_blog from file:/home/angel/Programas/JDownloader/jd/img/jd_blog.png
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.config.DatabaseConnector.saveConfiguration(Unknown Source)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.JDInit.loadConfiguration(Unknown Source)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.Main.go(Unknown Source)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.Main.access$0(Unknown Source)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at jd.Main$1.run(Unknown Source)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
05-ene-2009 19:20:25 - GRAVE [jd.utils.JDUtilities$2(write)] -> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


/* sebastianbreit.com */

asystat’s Profile: http://forums.opensuse.org/member.php?userid=16714
View this thread: http://forums.opensuse.org/showthread.php?t=404077

try the command
ls -l /home/angel/Programas/JDownloader/config/database.script.backup

This command will list the owner and all permission settings of this
file.
If you don’t know how to set this, post the information here and I’ll
try to help you.


tuliom

tuliom’s Profile: http://forums.opensuse.org/member.php?userid=14307
View this thread: http://forums.opensuse.org/showthread.php?t=404077

omg didnt see that line!!!
everything fixed with chown -R angel:users
/home/angel/Programas/JDownloader/


/* sebastianbreit.com */

asystat’s Profile: http://forums.opensuse.org/member.php?userid=16714
View this thread: http://forums.opensuse.org/showthread.php?t=404077