*URGENT* Uploader Errors


#1

First thing I tried was associating cguploader.jar with javaw.exe
I get the error from Java Virtual Machine Launcher

Could not find the main class. Program will now exit.

Second I tried running from the CMD prompt as described @
http://wiki.cgsociety.org/index.php/Help:CGUploader
I get the error

‘java’ is not recognized as an internal or external command, operable program or batch file.

Third I tried a bat file placed in the same folder as cguploader.jar

 %DOSCMD% call CGUploader.jar 

I get the error from Java Virtual Machine Launcher

Could not find the main class. Program will now exit.

Fourth I tried embedding it as an applet. Unzipped the .jar so I could get direct access to the class and placed this html page in the same folder as cguploader.jar.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)">
<html xmlns="[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CG Uploader</title>
</head>
<body>
<applet code="CGUploader" codebase = "cguploader" width="100%" height="100%">
</applet>
</body>
</html>

Then I got.

java.security.AccessControlException: access denied (java.net.SocketPermission portfolio.cgsociety.org:80 connect,resolve)

IE7
jre1.6.0_07
Vista Ultimate 64-bit

Reply here or via PM if needed.

Thanks,
Bill


#2

SOLUTION

Create a bat file:
I named mine CG Uploader.bat

If you don’t know how to do that just open up note pad then copy/paste this code

 "bin\javaw.exe" -jar "cguploader.jar" 

and save it as CG Uploader.bat
Then put that in your java folder.
Example:
C:\Program Files (x86)\Java\jre1.6.0_07
Place it just outside of the lib and bin folders.
Then put cguploader.jar there too.

Rt-click the bat file and send to desktop creating a shortcut.

Enjoy!
Bill


#3

try {
Copy “AbsoluteLayout.java” and “AbsoluteConstraints.java” from the netbeans lib to the project directory and build the project then build the jar.
}
catch {
:shrug:
}


#4

Looks like java isn’t in your path.

if you type “java” at a clean command prompt does it run?

if not, you’ll need to add the path to java.exe to your environment variables (go to your control panel and type “environment” in your search box). It SHOULD do this when you install it but there might be an issue with it being 32bit.


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.