RFE: faster javac compilation using invocation instead of running javac.exe
Sun's JDK contains the Java compiler in tools.jar.
Why not use it instead of running javac.exe?
It should also simplify the code for cross platform compatibility...
Regards,
Yaniv Kunda
I meant that JDev would invoke the compiler from the libs of the project JDK.
But this is indeed a sort of a hack because the libs are not documented and are sun-specific (a problem with other JDKs).
Anyway, I was just reading a bit on Java 6 (Mustang) and saw that an API (per JSR-199 : http://jcp.org/en/jsr/detail?id=199) for java compilation is one of its new features!
This feature is documented in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4164450.
I guess it would be a feature for a newer major release of JDev, but nevertheless important to mention.
Regards,
Yaniv Kunda
Similar Messages
-
When I click on either the firefox shortcut or firefox.exe in the Mozilla folder, instead of running, the computer asks me to "Choose the program you want to use to open this file: firefox.exe". The recommended program is Adobe Reader 9.1, which obviously doesn't help.
I have uninstalled firefox and downloaded it again, but now I am trying to run Firefox Setup 4.0.exe, and it asks me again to "Choose the program you want to use to open this file: firefox setup 4.0.exe" Help?This is a registry problem with your .exe entry
The below program worked for me on my vista machine.
http://windowsxp.mvps.org/exefile.htm
You can download an exe file from there that automatically sorts the issue or you can edit the registry manually. -
TagHandlers run in compile-time invocations. Is it only once?
""TagHandlers run in compile-time invocations and ComponentHandlers run in JSF invocations""
I the above statement of compile time mean what?. Is it only run once at the first time?
Is it mean it will parse all the tag in jsp and change it to servlet ?
It is because i want to write a tag that is run only once to read the hibernate annotation(length,nullable) to set it to input text.
Any comment?Sure,
/* Java has a platform-inderpendent preferences database, so in MS Windows this would be the registry.
The preferences db works in a tree (like the registry) and has two main branches, USER and SYSTEM. Then a branch for each class.
java.util.prefs.Preferences prefs =
java.util.prefs.Preferences.userNodeForPackage(MyBaseClass.class);
// The line above creates a prefrences object (a handle on the system DB
// for only MyBaseClass's branch within the users section.
String folder = prefs.get("defaultFolder");
// the Preferences.get object takes an Object and returns either
// the object assiosated with it, or null.
// For more info on this take a look at Hashtables.
if(folder == null) {
folder = getFolder(); // say using JFilePanel
/* now we need to store the the data, to do this we use put, this is
then automaticly saved. */
prefs.put("defaultFolder", folder);
}Hope that helps, mlk -
"Error running javac.exe compiler" when using ant to compile Eclipse plugin
Hi
I encounter an error "Error running C:\jdk1.5.0_06\bin\javac.exe compiler" when building my project using ant1.7.
My project has 10 eclipse plugins, and each plugin is compiled by invoking following ant target
<!-- ===================================================================
Compile specified plugin
target parameters:
param.plugin.dir: the plugin directory
param.plugin.targetJarFile: the name of jar file for the given plugin
param.plugin.src.dir: the folder name of source codes. Note: it is relative path name
param.fork: indicate if another process is forked to run javac
=================================================================== -->
<target name="compilePlugin">
<!-- Prepare compile environment -->
<!-- Delete obsolete build folder -->
<delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
<!-- Delete obsolete jar file -->
<delete file="${param.plugin.dir}/${param.plugin.targetJarFile}" quiet="true"/>
<mkdir dir="${param.plugin.dir}/${build.dir}"/>
<!-- Compile source codes -->
<javac srcdir="${param.plugin.dir}/${param.plugin.src.dir}"
destdir="${param.plugin.dir}/${build.dir}"
failonerror="${javacFailOnError}"
verbose="${javacVerbose}"
debug="${javacDebugInfo}"
deprecation="${javacDeprecation}"
optimize="${javacOptimize}"
source="${javacSource}"
target="${javacTarget}"
fork="${param.fork}" memoryInitialSize="256m" memoryMaximumSize="512m">
<classpath refid="compile.classpath" />
</javac>
<!-- Create plugin jar file -->
<copy todir="${param.plugin.dir}/${build.dir}" failonerror="true">
<fileset dir="${param.plugin.dir}/${param.plugin.src.dir}" excludes="**/*.java, **/package.htm*" />
</copy>
<jar jarfile="${param.plugin.dir}/${param.plugin.targetJarFile}" basedir="${param.plugin.dir}/${build.dir}"/>
<delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
</target>
Since each of first 9 plugins contains less than 500 java source files, we always set "param.fork" to false when invoking this ant target.
For the 10th plugin, it has about 1000 source files. If we set "param.fork" to false, we will get the error "Error running javac.exe compiler". So we have to set "param.fork" to true when compiling it. This week, this plugin contains about 1250 files and we get the same error again when compiling it. I tried to increase the "memoryMaximumSize" to "768", but still couldn't get through it.
BTW, There are about 150 jar files in our classpath for compiling plugins. Do many jar files cause this problem?
Any help is highly appreciated.
Many thanks
OceanmanI encountered a very similar error and I was able to resolve it by removing the following parameters from the javac task:
fork="${param.fork}"
memoryInitialSize="256m"
memoryMaximumSize="512m"My values were not the same as yours, before I removed them, the values were set to:
fork="true"
memoryInitialSize="256m"
memoryMaximumSize="256m" Not sure why this fixed my problem but it did. I was using Ant 1.7 and Java 1.6_07 hope this helps. -
I have just downloaded an alternative keyboard (Fast Keyboard).
How do I get my Ipad2 to use it instead of the default keyboard, please?
Thanks for your helpFirst, please don't shout.
Second, don't post personal information.
Third, restore, if iTunes will let you. Everything except the password will be restored. Connect via cable to the computer that you use for sync. Be forewarned that it takes a long time. From iTunes, select the iPad/iPod and then select the Summary tab. Follow directions for Restore and be sure to say "yes" to the backup. You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod. Again, say "yes."
At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod. As before, say "yes." Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time. If that happens, only the apps that are part of the IOS will appear on your device. Corrective action is simple - choose manual "Sync" from the bottom right of iTunes.
If you're unable to do the Restore, go into Recovery Mode per the instructions here. -
Library Projects compiled using Flash Builder and ANT have different outputs
Hi Guys.,
I am really having hard time to get something work right with RSL projects in Flex 3.2 SDK. Here is my weird problem.
I have a library projects which has the following settings in Flash Builder
Link Type : External
airglobal.swc
framework.swc
datavisualization.swc
rpc.swc
utilites.swc
applicationupdater.swc
applicationupdater_ui.swc
Link Type: Merged into code
airframework.swc
servicemonitor.swc
Compiler settings
-directory=true -output=../../lib/core -debug=true -optimize=false -define+=CONFIG::bindingdebug,false -define+=CONFIG::frameworkdebug,false -define+=CONFIG::flexspy,true -define+=CONFIG::debug,true -define+=CONFIG::release,false -define+=CONFIG::logtoconsole,false -allow-source-path-overlap=true -keep-as3-metadata+=Metadata,DefaultProperty,Required,Event,AssignableTo,Inject,InjectCon structor,Publish,Subscribe,PublishSubscribe,Factory,Init,Destroy,Observe,AsyncInit,Managed Events,MessageDispatcher,MessageHandler,MessageBinding,MessageInterceptor,MessageError,Com mand,CommandComplete,CommandResult,CommandError,CommandStatus,ResourceBinding,Selector,Tar get,Autoremove,Internal,ObjectDefinition,DynamicObject
When I compile my library projects I get a MyLibraryproject.swc. The SWC has the following files in it
mx/controls/HTML.png
mx/core/Windows.png
library.swf
Note: airframework.swc and servicemonitor.swc has a many png files and properties files in it. But these properties and png files are not included when compiled in Flash builder.
But when the same project is compiled using ANT compc task, i get all the png and properties files from airframework.swc and servicemonitor.swc files into my library project SWC file.
Here is the ANT version which is used to compile the library project
<compc output="${project.output.dir}/${project.name}.swc"
include-classes="${as} ${mxml}"
use-network="false"
directory="false"
allow-source-path-overlap="true"
incremental="${build.incremental}"
debug="${build.debug}"
locale="${build.locale}"
optimize="false"
>
<define name="CONFIG::bindingdebug" value="${build.bindingdebug}" />
<define name="CONFIG::logtoconsole" value="${build.logtoconsole}" />
<define name="CONFIG::frameworkdebug" value="${build.frameworkdebug}" />
<define name="CONFIG::flexspy" value="${build.flexspy}" />
<define name="CONFIG::debug" value="${build.debug}" />
<define name="CONFIG::release" value="${build.release}" />
<keep-as3-metadata name="Metadata" />
<keep-as3-metadata name="DefaultProperty" />
<keep-as3-metadata name="Required" />
<keep-as3-metadata name="Event" />
<keep-as3-metadata name="AssignableTo" />
<keep-as3-metadata name="Inject" />
<keep-as3-metadata name="InjectConstructor" />
<keep-as3-metadata name="Publish" />
<keep-as3-metadata name="Subscribe" />
<keep-as3-metadata name="PublishSubscribe" />
<keep-as3-metadata name="Factory" />
<keep-as3-metadata name="Init" />
<keep-as3-metadata name="Destroy" />
<keep-as3-metadata name="Observe" />
<keep-as3-metadata name="AsyncInit" />
<keep-as3-metadata name="ManagedEvents" />
<keep-as3-metadata name="MessageDispatcher" />
<keep-as3-metadata name="MessageHandler" />
<keep-as3-metadata name="MessageBinding" />
<keep-as3-metadata name="MessageInterceptor" />
<keep-as3-metadata name="MessageError" />
<keep-as3-metadata name="Command" />
<keep-as3-metadata name="CommandComplete" />
<keep-as3-metadata name="CommandResult" />
<keep-as3-metadata name="CommandError" />
<keep-as3-metadata name="CommandStatus" />
<keep-as3-metadata name="ResourceBinding" />
<keep-as3-metadata name="Selector" />
<keep-as3-metadata name="Target" />
<keep-as3-metadata name="Autoremove" />
<keep-as3-metadata name="Internal" />
<keep-as3-metadata name="ObjectDefinition" />
<keep-as3-metadata name="DynamicObject" />
<load-config filename="${air.config}"/>
<compiler.include-libraries dir="${flex.frameworks.dir}/libs/air" append="true">
<include name="servicemonitor.swc" />
<include name="airframework.swc" />
</compiler.include-libraries>
<external-library-path dir="${build.compc.dir}" append="true">
<include name="TriGeoFlexFramework/TriGeoFlexFramework.swc" />
<include name="TriGeoLibrary/TriGeoLibrary.swc" />
<include name="TriGeoRPCFramework/TriGeoRPCFramework.swc" />
<include name="Degrafa_Beta3.1_Flex3" />
<include name="parsley-flex3-2.4.0.swc" />
<include name="spicelib-flex-2.4.0.swc" />
</external-library-path>
<external-library-path dir="${flex.frameworks.dir}/libs" append="true">
<include name="framework.swc" />
<include name="datavisualization.swc" />
<include name="utilities.swc" />
<include name="rpc.swc" />
<include name="air/airglobal.swc" />
<include name="air/applicationupdater.swc" />
<include name="air/applicationupdater_ui.swc" />
</external-library-path>
<source-path path-element="${basedir}/src" />
</compc>
</target>
</project>
Any insights is greatly appreciated.!#1, If it compiles then you have no issue. There's no reason at this point not to use 4.6. You should bundle a captive runtime to assure the users computer won't need to have AIR installed at all.
#2, Papervision is old. Use the Stage3D and/or a wrapper framework. As far as the generic "If I download lots of data will it take the user more time to load it", well, of course. Just don't make the loading experience painful. Entertain them while they way or find ways of displaying data sooner than later. If it's desirable on the web has more to do with the context of the app and the device displaying it. In other words, a phone user would find it easy but obviously not a desktop user.
#3, Definitely referring you to Google on that one.
#4, Size always matters, it's common sense. The more you process the harder it is. While I haven't done AR I've used the Microsoft Kinect SDK and ANE and tracking was extremely fast but limited. From what I've seen and your basic built in location and direction hardware on any mobile device you shouldn't have much trouble. Depends on what you're doing.
#5, This discussion would be way too large for a forum. You'd need to consult a firm experienced in AR development.
#6, "Applications using the commercial license do not have to provide source code, but must pay a licensing fee. Contact ARToolworks at [email protected] for more information." They will base your price on your product, there is no single price.
#7, The models could be huge and elaborate or tiny and simple which changes the answer. Consult the answer in #4. Ultimately most people are getting on fast networks with mobile and excessively fast on desktop/wifi. Size matters a lot less than 3 years ago.
#8, Depends on what you're doing. You have to explain it. -
GeoKettle: Error running javac.exe compiler
Hi,
I am trying to use GeoKettle exactly as mentioned at
http://209.85.229.132/search?q=cache:JHfrxCo7y0YJ:forge.osor.eu/docman/view.php/143/250/Kettle_Devel_guide_v0.odt+geokettle+spoon+java+api&cd=2&hl=en&ct=clnk&client=firefox-a
But when I try to build it, i am getting the following error.
[javac] Compiling 135 source files to D:\workspace\geokettle\classes-core
BUILD FAILED
D:\workspace\geokettle\build.xml:74: Error running javac.exe compiler
Can anyone guide me please to resolve this problem.
Best Regards
Tabbasummost likely the javac executable is not on the system path. Try typing 'javac -version' in a command prompt and see what response you get.
If it is something like 'javac is not a recognized...', locate where the JDK is installed and add its bin subdirectory to the PATH system variable. Restart any command prompt and type javac again.
You DID have a JDK installed, didn't you? -
Why do we use jap instead of servlet
why do we use jap instead of servlet
JSPs are compiled into servlets. Use them to more conveniently generate presentation code such as HTML. With a JSP, you can code the HTML directly, no need for lots of "out.println" statements. JSPs can be written by non-programmers who don't know Java using the built-in JSP features plus custom tags libraries.
-
Hello all
I have successfully compiled files using javac. The path is set, so I just need to open a command prompt and simply type javac AddServerImpl.java and it compiles with out errors. I do not have to specify any path at all.
But when I try to compile using rmic, that is where I have the problem. It simply says "error: Class AddServerImpl$.java not found. 1 error."
I simply don't understand what the problem is. If the path can work with javac <name>, why can't it work with rmic.
I have even tried copying the java files, to where the rmic file is present and then tried running rmic AddServerImpl. But it still does not work. I have even included the following line under the environment variables "setclass path = %classpath%c:\rmiproject\"
A bit desparate of ideas.
ThankyouIf the path can work with javac <name>, why can't it work with rmic.Because javac takes a path to a filename. rmic takes a package-qualified classname. Different strokes.
-
Incorrect ADT version when compiling using updated AIR SDK in Flash Builder
I was wondering if anyone else has come across adt version issues when compiling with Flash Builder.
I just downloaded Flash Builder 4.7 (I had 4.6 installed previously). I upgraded due to AIR SDK issues when trying to send my app to iOS. I downloaded AIR 3.7 SDK and done the whole "overlay" described here http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html but when trying to compile it Flash Builder, it states that version 3.7 is not only up to 3.1 I did a check of the adt that is being used (adt -version) and it returns back that it is version 3.1 This is the one contained within the sdks/4.6.0/lib folder. If I copy the one from the AIRSDK folder and check the version on that 3.7 comes up correctly, but it needs files that are contained in the AIRSDK folder, so I'll need to copy more than just the adt.jar file.
Really I'm just trying to see if anyone knows what I can change in Flash Builder to point to the AIRSDK folder instead of the sdks/4.6.0/lib folder so I'm not constantly updating my adt.jar file each time I install a new AIR SDK.OK, not the best solution (hopefully someone will be able to tell me where to update Flash Builder to point to the AIRSDK directory instead of {FB install dir}/sdks/4.6.0/lib, but until then, here's a work around.
First make sure to backup your old aot and android directories in your {FB install dir}/sdks/4.6.0/lib and your original adt file (I just renamed them to fileOrDir_original)
Then copy your adt.jar file, aot dir, android dir, and I copied legacy dir also to your {FB install dir}/sdks/4.6.0/lib
You should now be able to compile using the 3.7 AIR SDK. There's another fix for PIE in AIR 3.8, so I may be updating again soon to the labs build. I'm hesitant to copy any more files over in case it stops my non-mobile AIR builds from working, but hopefully this will be good enough for mobile builds and for anyone else having this issue in Flash Builder. -
Javac compiler Error - cannot resolve symbol - symbol StringBuilder?
Hi ,
I am using hp - ux system with java version "1.4.2.06". when i try to compile a program called CharSequenceDemo.java which is found in the java tutorials at this link
[CharSequenceDemo.java|http://java.sun.com/docs/books/tutorial/java/IandI/examples/CharSequenceDemo.java]
i get the following error:
$/opt/java1.4/bin/javac CharSequenceDemo.java
CharSequenceDemo.java:38: cannot resolve symbol
symbol : class StringBuilder
location: class CharSequenceDemo
StringBuilder sub =
^
CharSequenceDemo.java:39: cannot resolve symbol
symbol : class StringBuilder
location: class CharSequenceDemo
new StringBuilder(s.subSequence(fromEnd(end), fromEnd(start)));
^
CharSequenceDemo.java:44: cannot resolve symbol
symbol : class StringBuilder
location: class CharSequenceDemo
StringBuilder s = new StringBuilder(this.s);
^
CharSequenceDemo.java:44: cannot resolve symbol
symbol : class StringBuilder
location: class CharSequenceDemo
StringBuilder s = new StringBuilder(this.s);
^
4 errors
Please help on how to compile this program.I've been struggling with the same issue. The difference is that my system says I'm using version 1.6.0_05. I've tried running jucheck.exe. It tells me I've got the latest version installed.
Here is the code:
import java.lang.StringBuilder;
import java.util.Formatter;
public class UsingFormatter {
public static void main(String[] args) {
if (args.length != 1) {
System.err.println("usage: " +
"java format/UsingFormatter <format string>");
System.exit(0);
String format = args[0];
StringBuilder stringBuilder = new StringBuilder();
Formatter formatter = new Formatter(stringBuilder);
formatter.format("Pi is approximately " + format +
", and e is about " + format, Math.PI, Math.E);
System.out.println(stringBuilder);
}When I type javac UsingFormatter.java, I get:
UsingFormatter.java:1: cannot resolve symbol
symbol : class StringBuilder
location: package lang
import java.lang.StringBuilder;
^
UsingFormatter.java:2: cannot resolve symbol
symbol : class Formatter
location: package util
import java.util.Formatter;
^
UsingFormatter.java:14: cannot resolve symbol
symbol : class StringBuilder
location: class UsingFormatter
StringBuilder stringBuilder = new StringBuilder();
^
UsingFormatter.java:14: cannot resolve symbol
symbol : class StringBuilder
location: class UsingFormatter
StringBuilder stringBuilder = new StringBuilder();
^
UsingFormatter.java:15: cannot resolve symbol
symbol : class Formatter
location: class UsingFormatter
Formatter formatter = new Formatter(stringBuilder);
^
UsingFormatter.java:15: cannot resolve symbol
symbol : class Formatter
location: class UsingFormatter
Formatter formatter = new Formatter(stringBuilder);
^
6 errors
The compiler refuses to recognize the symbols StringBuilder and Formatter.
I have spent hours googling for an answer and trying every suggestion. Nothing works, not even the one about dropping the computer from the rooftop.
Ultimately, what I'm trying to accomplish (in a different program) is to use a text file as a form letter template and replace the %s placeholders with stings from my form object.
Any advice?
Edited by: javastudent_99 on Apr 3, 2008 1:48 PM -
Error- deploymnt fails - ORABPEL-00016 & 05215- Javac compiler config err
Hi,
We are getting the below error randomly when we try to deploy..
ORABPEL-00016
Javac compiler configuration error.
Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXX_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
ORABPEL-05215
Error while loading process.
The process domain encountered the following errors while loading the process "XXXXX" (revision "1.0"): Javac compiler configuration error.
Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXXl_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
and a huge stack trace...
Everything in the server.xml seems to be in the path... its getting fixed after a recycle.... we are able to deploy the same BPEL once recycled...
Does any one of you encounter same problem.. Whts the reason why this is occuring?
Thanks,
JayaprakashHi Jp,
The error message : Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
This means that you javac compiler might not be installed or not in the classpath entry. You might want to compile the bpel project using the JDev and then deploy.
Cheers
A -
Error- deployments fails-ORABPEL-00016 & 05215-Javac compiler config err
Hi,
We are getting the below error randomly when we try to deploy..
ORABPEL-00016
Javac compiler configuration error.
Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXX_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
ORABPEL-05215
Error while loading process.
The process domain encountered the following errors while loading the process "XXXXXX" (revision "1.0"): Javac compiler configuration error.
Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXXl_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
and a huge stack trace...
Everything in the server.xml seems to be in the path... its getting fixed after a recycle.... we are able to deploy the same BPEL once recycled...
Does any one of you encounter same problem.. Whts the reason why this is occuring?
Thanks,
JayaprakashHi Jp,
The error message : Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
This means that you javac compiler might not be installed or not in the classpath entry. You might want to compile the bpel project using the JDev and then deploy.
Cheers
A -
Compile error : "unable to find javac compiler"
Hello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.sml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to th JDK
I'm using the following product:
a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
NickHello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.sml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to th JDK
I'm using the following product:
a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
Nick -
Error "unable to find javac compiler"
Hello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.xml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
I'm using the following products:
a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
NickDuplicate of http://forum.java.sun.com/thread.jspa?threadID=687035
Maybe you are looking for
-
Payment Lot-Posting incomplete but posted a FICA document
Hello, A payment lot was created with the status "Posting incomplete" and there were few items in the "Not posted" list. When checked one of the accounts, the FICA document was posted for payment, but was NOT referring to the payment lot. The accoun
-
Internet Works on Windows Side; Not Mac
I installed my Airport Extreme, and I cant seem to connect wirelessly to the internet. I can however connect through an Ethernet cord and, oddly, my Windows partition side. Is there something wrong with my Airport receiver in general?
-
How do i create a group contact list inorder to send out emails to multiple persons?
how do i create a contact list for emailing from my iphone4?
-
Why configuring clock using clock set command is not accepted in nexus 7k?
Hello, I have a message like this: Admin-CORE1_VDC# clock set 15:26:00 7 december 2014 Setting clock from CLI is not allowed in this VDC. Use the following config command to use the "clock set" command. clock protocol none vdc <vdc_id> If I issue tha
-
Maps finds addresses in a completely different city, instead of the one I'm actually in
Why does Maps return addresses in a completely different city, even if location services are enabled? I must manually type in the city name every time, or I usually get different cities or countries (I live in a major Canadian city). Sometimes it giv