Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Eclipse and Ant  (Read 1742 times)
0 Members and 1 Guest are viewing this topic.
Offline rdcarvallo

Senior Member


Projects: 5


2D Java games forever!


« Posted 2003-07-20 07:14:46 »

Hi,
 I posted this on Newless Clewbies..but didn't get answers..  :-/
  
  I'm using Eclipse 2.1. My problem is that the Ant Builder included doesn't find the java executables,  i.e., I cannot use the <rmic ... > tag. To solve the problem I'm using  <exec ...jdk\bin\rmic.exe ..>
  I didn't try the others executables (jar, javac) because I 'm using the Ant script after Eclipse's Java build.
 When I try to build the project, I recieve the following error:

[rmic] BUILD FAILED: file:E:/Proyectos/jinitest/build.xml:4: Cannot use SUN rmic, as it is not available.  A common solution is to set the environment variable JAVA_HOME or CLASSPATH.
 

  I don't know if it's a problem of Eclipse(config or installation) or my Java installation.. (currently using j2sdk1.4.0 on Win98SE)
 
  Anyone knows where to configure correctly Ant in Eclipse??

Offline tortoise

Junior Member




<3 Shmups


« Reply #1 - Posted 2003-07-20 16:34:43 »

what happens when you open a dos prompt and type "echo %JAVA_HOME%"?

If nothing, open up autoexec.bat and add

set JAVA_HOME=C:\path\to\java

the path being the root home of Java, something like C:\j2sdk1.4.0

near the top, there may be other "set" statements, place it by them.

Reboot your computer and see if that helps.
Offline rdcarvallo

Senior Member


Projects: 5


2D Java games forever!


« Reply #2 - Posted 2003-07-20 23:33:14 »

I tried that, my autoexec has the lines:

set JAVA_HOME=c:\jdk
set PATH=c:\jdk\bin;....


Both doesn't fix the problem.

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Mojomonkey

Senior Member




ooh ooh eee eeee


« Reply #3 - Posted 2003-07-20 23:54:36 »

Go to window-> preferences. Select the Ant section, runtime is under ant. Set ANT_HOME here.

Don't send a man to do a monkey's work.
Offline rdcarvallo

Senior Member


Projects: 5


2D Java games forever!


« Reply #4 - Posted 2003-07-23 02:02:38 »

Huh What do I put there Huh
It ask for a directory with a  lib directory inside...
Since Ant came with eclipse, I looked in the plugins directory, and found this..

C:\eclipse\plugins\org.eclipse.ant.core_2.1.0
C:\eclipse\plugins\org.apache.ant_1.5.2

The first one has a lib directory inside... tried setting it but still doesn't work.. Cry
Offline Mojomonkey

Senior Member




ooh ooh eee eeee


« Reply #5 - Posted 2003-07-23 12:23:16 »

I downloaded and installed ant from jakarta, then pointed to this in eclipse. Never tried eclipses own ant.

Don't send a man to do a monkey's work.
Offline rdcarvallo

Senior Member


Projects: 5


2D Java games forever!


« Reply #6 - Posted 2003-07-26 02:43:13 »

Still doesn't work... :-/
Following your tip, I downloaded Ant (1.5.3) and pointed in the ANT_HOME field in the preferences..
I also changed my autoexec to try Ant from the command line. Now it looks like:

set JAVA_HOME=c:\jdk
set ANT_HOME=c:\ant
set PATH=c:\jdk\bin;c:\ant\bin; ....

Next tested Ant from the command line and worked ok Smiley.
But in eclipse appears an error:

BUILD FAILED: java.lang.VerifyError: (class: org/apache/xerces/parsers/IntegratedParserConfiguration, method: configurePipeline signature: ()V) Incompatible type for getting or setting field

I don't want to open a D.O.S. window each time I need to rebuild my project.. Angry

What could be the error now? Huh Huh
Offline Rob Grzywinski

Junior Member




Reality Interactive


« Reply #7 - Posted 2003-08-13 15:52:57 »

I don't suppose that you looked at the Eclipse newsgroups.  For example,

  http://dev.eclipse.org/newslists/news.eclipse.tools/msg15225.html

Make sure that you have a username / password for the newsgroups as seen here:

  http://www.eclipse.org/newsgroups/index.html

Typically if you have problems with a third party tool the best place to get answers about that tool is forums, newsgroups, mailing lists, etc for that tool.
Offline rdcarvallo

Senior Member


Projects: 5


2D Java games forever!


« Reply #8 - Posted 2003-08-17 07:09:17 »

Thanks!!
It worked!!
Smiley Smiley

BTW, in the thread they were looking for another error, but the fix also worked for me!!

Did I thank??
Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (31 views)
2013-05-17 21:29:12

alaslipknot (40 views)
2013-05-16 21:24:48

gouessej (70 views)
2013-05-16 00:53:38

gouessej (69 views)
2013-05-16 00:17:58

theagentd (78 views)
2013-05-15 15:01:13

theagentd (73 views)
2013-05-15 15:00:54

StreetDoggy (113 views)
2013-05-14 15:56:26

kutucuk (137 views)
2013-05-12 17:10:36

kutucuk (136 views)
2013-05-12 15:36:09

UnluckyDevil (145 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 22 queries.