Hi

Thanks for your help, I found the problem was not within JDE, ant  
needs JAVA_HOME to be set, and I had not set it within emacs. So:
(setenv "JAVA_HOME" "/System/Library/Frameworks/JavaVM.framework/ 
Versions/1.6/Home")
Fixed my problem :)

Regards
Anton

On 9 dec 2008, at 00.54, Paul Landes wrote:

> I would try configuring everything using the customize system
> (i.e. M-x customize-group jde RET).
>
> Also trying using "1.6" instead of the version specific path.  Most of
> these paths are symbolic links and the system changes the default JRE
> by changing these links.
>
> Let me know if that doesn't work, and if not, error message and stack
> traces.
>
> Anton Johansson writes:
>> Hi
>>
>> Im having trouble compiling a project in JDE with java version 1.6. I
>> use osx leopard and ant to compile. Have tried to set all different
>> kind of JDE variables but I cant seem to get it to compile source  
>> with
>> java version 1.6.
>>
>> Compiling with ant:
>> (set-variable 'jde-build-function '(jde-ant-build))
>>
>> One configuration of jde-jdk settings:
>> (custom-set-variables
>>  '(jde-compiler (quote ("javac" "/usr/bin/javac")))
>>  '(jde-jdk-registry (quote (("1.6.0_07" . "/System/Library/ 
>> Frameworks/
>> JavaVM.framework/Versions/1.6.0"))))
>>  '(jde-jdk (quote ("1.6.0_07"))))
>>
>> Should i use jde-set-variables?
>>
>> Have tried with different  versions of '(jde-compiler (quote ("javac"
>> "/usr/bin/javac"))) like setting it to ("javac server" ""), the
>> standard value. What's the right configuration to get my source
>> compiled into java version 1.6 classfiles.
>>
>> When running java from terminal gives me:
>> bash-3.2$ java -version
>> java version "1.6.0_07"
>> Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
>> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
>>
>> bash-3.2$ javac -version
>> javac 1.6.0_07
>>
>> bash-3.2$ which javac
>> /usr/bin/javac
>>
>> Running ant from a terminal compiles the code to classfiles of java
>> version 1.6, which is what I want. Can't seem to find documentation
>> that helps...
>>
>> Regards
>> Anton
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,  
>> Nevada.
>> The future of the web can't happen without you.  Join us at MIX09  
>> to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> jdee-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jdee-users
>
>
> -- 
> Paul Landes
> [EMAIL PROTECTED]


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
jdee-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-users

Reply via email to