Hi Johan

You could try changing the Java reference in 

/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt

from

# JVM == java

to something more like

# JVM == /System/Library/Frameworks/JavaVM.framework/Versions/1.7.25//Commands/ 
java 

I don't know for sure this is the right solution, but it seems like it would be 
worth a try.

Liz

On 30 Jul 2013, at 07:30, Johan Henselmans <[email protected]> wrote:

> Here's the situation:
> 
> I have to use a framework which is java 1.7+
> I have to use Snow Leopard
> I have to use WebObjects. 
> 
> I got this far:
> I am compiling on Mac Os 10.8, Eclipse 3.7, have set the Java Parameter on 
> 1.7, compiles fine, app runs fine in 10.8 from wotaskd.
> 
> On Snow Leopard: 
> I Installed java 1.7.25 on Snow Leopard with Pacifist, it displays in Java 
> Preferences, and I have set it to be the default JVM in JavaPreferences:
> 
> <PastedGraphic-1.png>
> 
> I installed wotaskd and womonitor form Wonder integration in 
> /Library/WebObjects/JavaApplications (and ERExtensions, AJax and ERJars 
> framework, because they are not included), 
> 
> 
> 
> I removed /System/Library/LaunchDaemons/com.apple.wotaskd.plist and 
> womonitor.plist
> I added the com.webobjects.wotaskd.plist and the 
> com.webobjects.womonitor.plist to /Library/LaunchDaemons/
> 
> 
> java -version gives:
> java version "1.7.0_25"
> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
> Java HotSpot(™) 64-Bit Server VM (build 23.25-b01, mixed mode)
> 
> However, starting wotaskd and womonitor log that they are using 1.6:
> 
> wotaskd:   
> java.endorsed.dirs=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed
> wotaskd:   
> java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
> wotaskd:   java.runtime.name=Java(TM) SE Runtime Environment
> wotaskd:   java.runtime.version=1.6.0_51-b11-456-10M4508
> wotaskd:   java.specification.name=Java Platform API Specification
> wotaskd:   java.specification.vendor=Sun Microsystems Inc.
> wotaskd:   java.specification.version=1.6
> wotaskd:   java.vendor=Apple Inc.
> wotaskd:   java.vendor.url=http://www.apple.com/
> wotaskd:   java.vendor.url.bug=http://bugreport.apple.com/
> wotaskd:   java.version=1.6.0_51
> wotaskd:   java.vm.info=mixed mode
> wotaskd:   java.vm.name=Java HotSpot(TM) 64-Bit Server VM
> wotaskd:   java.vm.specification.name=Java Virtual Machine Specification
> wotaskd:   java.vm.specification.vendor=Sun Microsystems Inc.
> wotaskd:   java.vm.specification.version=1.0
> wotaskd:   java.vm.vendor=Apple Inc.
> wotaskd:   java.vm.version=20.51-b01-456
> 
> Running the app from the command-line gives java 1.7, but running from 
> wotaskd gives the following log in 
> /Library/WebObjects/Logs/SpawnOfWotaskd.log  (after touching 
> /tmp/logWebObjects):
> java.lang.UnsupportedClassVersionError: nl/netsense/theaterres/Application : 
> Unsupported major.minor version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
> 
> I know that one, it means I am not running java 1.7.
> 
> 
> So question: 
> -how do I get wotaskd to start apps with java 1.7?
> 
> 
> Johan Henselmans
> [email protected]
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-deploy mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-deploy/liz%40plsys.co.uk
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to