Re: Application class in a package {More Info}
Re: Application class in a package {More Info}
- Subject: Re: Application class in a package {More Info}
- From: Greg Hulands <email@hidden>
- Date: Fri, 15 Oct 2004 08:37:13 +1000
Hi Chuck,
Yes, I have quit and deleted the build files, but the same thing.
Here is the MacOSClassPath.txt:
# JVM == java
# JVMOptions == -verbose
# JDB == jdb
# JDBOptions ==
# ApplicationClass == au.com.shoebox.woapplication.Application
APPROOT/
WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/
javafoundation.jar
WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/
javaeocontrol.jar
WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
javaeoaccess.jar
WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
javawebobjects.jar
WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar
WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
LOCALROOT/Library/Frameworks/ERChangeNotificationJMS.framework/
Resources/Java/ERChangeNotificationJMS.jar
LOCALROOT/Library/Frameworks/ERChangeNotificationJMS.framework/
Resources/Java/jms_1.0.2a.jar
LOCALROOT/Library/Frameworks/ERChangeNotificationJMS.framework/
Resources/Java/jndi_1.2.1.jar
LOCALROOT/Library/Frameworks/ERChangeNotificationJMS.framework/
Resources/Java/openjms-client-0.7.6.jar
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/
ERExtensions.jar
LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/junit.jar
LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/log4j
-1.2.8.jar
LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/
ERJavaMail.jar
LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/
activation-1.0.2.jar
LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/
jakarta-oro-2.0.6.jar
LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/mail
-1.3.jar
LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/Java/
PostgresqlPlugIn.jar
WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/
javajdbcadaptor.jar
WOROOT/Library/Frameworks/JavaWebServicesClient.framework/Resources/
Java/javawebservicesclient.jar
WOROOT/Library/Frameworks/JavaWebServicesSupport.framework/Resources/
Java/javawebservicessupport.jar
HOMEROOT/Library/Java
LOCALROOT/Library/Java
WOROOT/Library/Java
/Network/Library/Java
WOROOT/Library/Frameworks/JavaVM.framework/Classes/classes.jar
WOROOT/Library/Frameworks/JavaVM.framework/Classes/ui.jar
Greg
On 15/10/2004, at 8:33 AM, Chuck Hill wrote:
Looks a little odd. What is in
/Users/ghulands/Development/Builds/ShoeBox.woa/Contents/MacOS/
MacOSClassPath
.txt?
Have you tried the old "quit vexCode, delete the build directory, and
restart" trick? vexCode is perverse in what it likes to cache and for
how
long.
Chuck
At 08:25 AM 15/10/2004 +1000, Greg Hulands wrote:
Here is the first few line of the generated class path:
Reading MacOSClassPath.txt ...
Launching ShoeBox.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System"
-DWOLocalRootDirectory=""
-DWOUserDirectory="/Users/ghulands/Development/Builds"
-DWOEnvClassPath=""
-DWOApplicationClass=au.com.shoebox.woapplication.Application
-DWOPlatform=MacOS -Dcom.webobjects.pid=10038 -classpath
WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap
appRoot is /Users/ghulands/Development/Builds/ShoeBox.woa/Contents
Loading
/Users/ghulands/Development/Builds/ShoeBox.woa/Contents/MacOS/
MacOSClassPath.txt
Generated classpath:
/Users/ghulands/Development/Builds/ShoeBox.woa/Contents/
/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/
javafoundation.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/
javaeocontrol.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
javaeoaccess.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
javawebobjects.jar
/System/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar
It seems as though the first line is wrong, it should be
.../Contents/Java/shoebox.jar.
How would I fix this?
Greg
On 15/10/2004, at 8:07 AM, Greg Hulands wrote:
Xcode and Yes it is there. I opened it in the Jar Browser and the
classes are all there.
I changed the setting of WOAPPLICATION_CLASS_NAME to
au.com.shoebox.woapplication.Application in the ShoeBox target.
Greg
On 15/10/2004, at 7:58 AM, Chuck Hill wrote:
Eclipse? vexCode? Is the shoebox.jar file actually there?
At 07:46 AM 15/10/2004 +1000, Greg Hulands wrote:
Hi,
I have been packaging my classes up and am now getting a class not
found exception when trying to run.
Can't load au.com.shoebox.woapplication.Application class,
exiting...
java.lang.ClassNotFoundException:
au.com.shoebox.woapplication.Application
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:68)
In the Generated Classpath from WOBootstrap, I have noticed that
the
shoebox.jar file is not there. This is the file in
/Contents/Resources/Java.
What am I doing wrong?
Any help is greatly appreciated.
Regards,
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
chill@global-villag
e.net
This email sent to email@hidden
--
Chuck Hill email@hidden
Global Village Consulting Inc.
http://www.global-village.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Chuck Hill email@hidden
Global Village Consulting Inc.
http://www.global-village.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden