JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 26.07.2009, 07:43
Amaranth
Guest
 
Posts: n/a
Default "Could not find the main class: jd.Main" on executing file

Hi there,

I've used JDownloader for about a month, and it has worked perfectly up until now. I tried to open the program, but an error message popped up with:
"Could not find the main class. Program will exit."

I decided to come back here and download the latest version, and also updated Java. However, now I get the message:
"Could not find the main class: jd.Main. Program will exit."

Can anyone tell me what's wrong, and how I could fix it? Thank you in advance!
Reply With Quote
  #2  
Old 27.07.2009, 14:41
remi
Guest
 
Posts: n/a
Cool

I think this must be a bug and should be posted in the bugs forum.

What's your version of the Java Runtime Engine (JRE)?

What's your operating system and version?
Reply With Quote
  #3  
Old 04.08.2009, 14:22
Amaranth
Guest
 
Posts: n/a
Default

Thanks for responding Remi!
I have version 6, update 13, and I use Windows Vista 64bit. Seems strange for the program to suddenly stop working though?
Reply With Quote
  #4  
Old 05.08.2009, 10:44
remi
Guest
 
Posts: n/a
Cool

There are security problems with jD if it is started in the root partition (where Vista/W7 are installed) of your files system.

Please, move the jD folder somewhere else and try again.
Reply With Quote
  #5  
Old 05.08.2009, 14:51
Amaranth
Guest
 
Posts: n/a
Default

I got the same error message after moving the folder to a different drive.
Reply With Quote
  #6  
Old 06.08.2009, 10:38
remi
Guest
 
Posts: n/a
Cool

The problem is certainly a jD related problem as the program is not complying to new Micro$oft Windoze standards.

If you can't live without jD I would revert to a Windoze version that supports jD
Reply With Quote
  #7  
Old 06.08.2009, 12:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

"Could not find the main class: jd.Main. Program will exit."
= JDownloader.jar is broken or not available!
I suggest to start jdupdate.jar and let jd get/fix the missing files.

This is not a JD Problem as we testet JD on every Windows OS since XP, even 2000 and Win98 it runs at the moment. It does not matter 32/64bit.

Pls start jdupdate.jar and be sure you dont have JD installed in Program Folder! If it still does not work, i need more information.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 06.08.2009, 13:04
remi
Guest
 
Posts: n/a
Cool

jD is a program. Why can't jD be installed in the Program Folder?

Last edited by remi; 06.08.2009 at 13:07.
Reply With Quote
  #9  
Old 06.08.2009, 13:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

google for it (java and progam folder)
in short: non admin programs are not allowed to write into program folder and their writes are redirected to another location, that means that a read operation comes from program folder, but a write operation lands in a completely different folder. this causes problems.
because this is not the same on every computer (what user rights, what security software(some disable this function), what windows version and so on, we say its better to use a non problematic folder
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 06.08.2009, 13:32
remi
Guest
 
Posts: n/a
Cool

Thanks for your honest answer.

This problem only happens with Vista and W7, because Micro$oft has taken measures against malware.

Shouldn't jD become a normal application that is compliant with modern security rules and put its data in a directory that has normal customer access rights? In Windoze this is the Documents and Settings folder.

A clear separation between program and data would also make upgrades a less problematic adventure.
Reply With Quote
  #11  
Old 07.08.2009, 12:01
Amaranth
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
"Could not find the main class: jd.Main. Program will exit."
= JDownloader.jar is broken or not available!
I suggest to start jdupdate.jar and let jd get/fix the missing files.

This is not a JD Problem as we testet JD on every Windows OS since XP, even 2000 and Win98 it runs at the moment. It does not matter 32/64bit.

Pls start jdupdate.jar and be sure you dont have JD installed in Program Folder! If it still does not work, i need more information.
Sorry, I'm a bit ignorant when it comes to these things: how to I "start" jdupdate.jar?
Reply With Quote
  #12  
Old 07.08.2009, 13:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by remi View Post
A clear separation between program and data would also make upgrades a less problematic adventure.
There is no problem with that, and we dont want that , because this way jd is portable (you dont have to search your files and so on)..whole jd is in one folder.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 07.08.2009, 13:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by Amaranth View Post
Sorry, I'm a bit ignorant when it comes to these things: how to I "start" jdupdate.jar?
doubleclick (when java is correct installed) or rightlick , open with sun java
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 07.08.2009, 14:42
remi
Guest
 
Posts: n/a
Cool

Quote:
Originally Posted by Jiaz View Post
There is no problem with that, and we dont want that , because this way jd is portable (you dont have to search your files and so on)..whole jd is in one folder.
I'm running OpenOffice. It's a portable java application and it uses my Documents and Settings directory to store its settings. I've never needed to search for my settings...

I've more examples if you want them.
Reply With Quote
  #15  
Old 07.08.2009, 15:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

you cannot simply copy your openoffice and put on different pc and have the complete setup many many users want jd to be portable
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 07.08.2009, 16:04
remi
Guest
 
Posts: n/a
Cool

Quote:
Originally Posted by Jiaz View Post
you cannot simply copy your openoffice and put on different pc and have the complete setup many many users want jd to be portable
Who wants to copy OpenOffice to another PC? You just install it on any PC you want. This way you get the most recent release.

When you want to copy your OO settings then you just copy everything in C:\Documents and Settings\[user]\Application Data\OpenOffice.org2\ to the corresponding directory on any other PC where you installed OO.
Reply With Quote
  #17  
Old 07.08.2009, 16:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

but many users want this portable feature for jd so copy jd folder to usb stick and run it everywhere.....
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 07.08.2009, 16:16
remi
Guest
 
Posts: n/a
Cool

OK, I understand your use of the word 'portable'. You mean a sticky...

But that doesn't mean you can't create a separate data and settings folder inside the jD folder.
Reply With Quote
  #19  
Old 08.08.2009, 09:13
Amaranth
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
doubleclick (when java is correct installed) or rightlick , open with sun java
It doesn't give me that option, and I'm pretty sure Java is installed properly. I downloaded and installed it again just to be sure. I manually chose to open with Java but after running the .jar file, I get the same error message.
Reply With Quote
  #20  
Old 08.08.2009, 10:08
remi
Guest
 
Posts: n/a
Cool

If double clicking doesn't work (some extraction programs change the association), open a command window, go to the jD directory (cd your-jD-directory) and execute "java -jar jdupdate.jar" (without the double quotes).

See also :- hxxp://www.javaworld.com/javaworld/javatips/jw-javatip127.html

Last edited by remi; 18.09.2009 at 14:37.
Reply With Quote
  #21  
Old 20.06.2010, 05:14
escupime
Guest
 
Posts: n/a
Default

Quote:
"Could not find the main class: jd.Main. Program will exit."
= JDownloader.jar is broken or not available!
I suggest to start jdupdate.jar and let jd get/fix the missing files.

This is not a JD Problem as we testet JD on every Windows OS since XP, even 2000 and Win98 it runs at the moment. It does not matter 32/64bit.

Pls start jdupdate.jar and be sure you dont have JD installed in Program Folder! If it still does not work, i need more information.
I have the same problem ans I've already done that butit doesn't let me update it either :S
what should I do? I need it desperately
Reply With Quote
  #22  
Old 20.06.2010, 09:24
remi
Guest
 
Posts: n/a
Cool

Allow java and javaw in your firewall and virus software. Disable (or un-install) the port 80/html/web scanner in your virus software.
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 16:22.
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.