You are not logged in.

scGuy

Beginner

  • "scGuy" started this thread

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

1

Saturday, January 22nd 2011, 6:05am

Error in build.bat

I downloaded all the latest and greatest, following the "tutorial" for building the jabaco framework. When I run build.bat, I get an immediate error "Unable to find a javac compiler". I have JRE and JDK installed. Here is the funny thing--it is saying my "JAVA_HOME" env var might be pointed to the wrong place, then it proceeds to tell me the current value of JAVA_HOME. However, the value it gives me is not what I currently have set. Take a look:



C:\Program Files\Jabaco\Framework\Framework>build

C:\Program Files\Jabaco\Framework\Framework>ant 1>ant.log

BUILD FAILED
C:\Program Files\Jabaco\Framework\Framework\build.xml:52: Unable to find a javac
compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"


Total time: 0 seconds

C:\Program Files\Jabaco\Framework\Framework>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_23\bin




Take a look at what I've highlighted in red. Obviously my env var is set correctly, why is build.bat ignoring it?

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Saturday, January 22nd 2011, 7:48am

RE: Error in build.bat

Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"
That is the JRE (Java Runtime Environment). Not the JDK (Java Development Kit). At first the Java files will be compiled. And that is only possible with a Java compiler, which is in the JDK.

Quoted

C:\Program Files\Jabaco\Framework\Framework>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_23\bin
Again the wrong path. Your JAVA_HOME should be set to
C:\Program Files\Java\jdk1.6.0_23

So you have to type in your commandline:
C:\Program Files\Jabaco\Framework\Framework>set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_23"

For the rest, this link will help you to compile:
[ Problem with the Framework ]

The point is, that in Jabaco 1.4-times the framework was compiled without ant, the way I mentioned in the link.
With Jabaco 1.5 there comes additional the ant way, which currently not work correct. So you have to go zthe other way to compüile the Jabaco-part.


Edit:
Possible this threads will help you a little bit, too:
[ In which revision of works the ant way correct? ]
[ New Version ]
[ New Version Page 2 ]

This post has been edited 6 times, last edit by "theuserbl" (Jan 22nd 2011, 10:05am)


Rate this thread
WoltLab Burning Board