Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (499)
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 2254 times)
0 Members and 1 Guest are viewing this topic.
Offline rdcarvallo

Senior Member


Projects: 5
Exp: 15 years


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
Exp: 15 years


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!
Legends of Yore - The Casual Retro Roguelike
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
Exp: 15 years


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
Exp: 15 years


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
Exp: 15 years


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.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (44 views)
2014-04-15 18:08:23

BurntPizza (40 views)
2014-04-15 03:46:01

UprightPath (56 views)
2014-04-14 17:39:50

UprightPath (38 views)
2014-04-14 17:35:47

Porlus (54 views)
2014-04-14 15:48:38

tom_mai78101 (77 views)
2014-04-10 04:04:31

BurntPizza (136 views)
2014-04-08 23:06:04

tom_mai78101 (236 views)
2014-04-05 13:34:39

trollwarrior1 (197 views)
2014-04-04 12:06:45

CJLetsGame (205 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!