#1
|
|||
|
|||
"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! |
#2
|
|||
|
|||
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? |
#3
|
|||
|
|||
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? |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
I got the same error message after moving the folder to a different drive.
|
#6
|
|||
|
|||
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 |
#7
|
||||
|
||||
"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 |
#8
|
|||
|
|||
jD is a program. Why can't jD be installed in the Program Folder?
Last edited by remi; 06.08.2009 at 13:07. |
#9
|
||||
|
||||
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 |
#10
|
|||
|
|||
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. |
#11
|
|||
|
|||
Quote:
|
#12
|
||||
|
||||
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 |
#13
|
||||
|
||||
doubleclick (when java is correct installed) or rightlick , open with sun java
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
Quote:
I've more examples if you want them. |
#15
|
||||
|
||||
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 |
#16
|
|||
|
|||
Quote:
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. |
#17
|
||||
|
||||
but many users want this portable feature for jd so copy jd folder to usb stick and run it everywhere.....
__________________
JD-Dev & Server-Admin |
#18
|
|||
|
|||
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. |
#19
|
|||
|
|||
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.
|
#20
|
|||
|
|||
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. |
#21
|
|||
|
|||
Quote:
what should I do? I need it desperately |
#22
|
|||
|
|||
Allow java and javaw in your firewall and virus software. Disable (or un-install) the port 80/html/web scanner in your virus software.
|
Thread Tools | |
Display Modes | |
|
|