Go to Post FIRST teams procrastinate and slack off?!?!? The question is, if you do it in a way that keeps your grandmother proud, would that make it "Gracious Procrastinatism?" - Mr MOE [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-08-2011, 03:06
rthinman rthinman is offline
Registered User
AKA: Rod Hinman
FRC #3881 (WHEAbots)
Team Role: Mentor
 
Join Date: Apr 2011
Rookie Year: 2011
Location: Kailua Kona, HI
Posts: 6
rthinman is an unknown quantity at this point
Eclipse library build errors

Hello,

I installed Eclipse (3.7 Indigo) on our Windows 7 development computer. I think I was able to install the FRC Eclipse plug-in on the second try (first try I forgot to check the box and it didn't install everything). So now I have the help files, I can create a sample project, etc. I pointed the plug-in to the JRE that corresponds to the JDK (version 6 update 26) I loaded beforehand, and that is the default. I put our team number into the preferences page for FRC.

But, I noticed after putting in the team number that there were errors in the console window, something about not building. Similarly, when I open an example project, errors show up in the "problems" window, in the console, and I have errors flagged in the source (can't import the WPI library). It seems that the WPILib does not compile, thus there are no class files.

If you are interested, here is what it says in the console window, though it doesn't tell me much about why the build failed.

Code:
-do-compile:
    [mkdir] Created dir: C:\eclipse\plugins\edu.wpi.first.javadev.sunspotfrcsdk_1.0.6.6\sunspotfrcsdk\lib\WPILibJ\build
    [javac] Compiling 126 source files to C:\eclipse\plugins\edu.wpi.first.javadev.sunspotfrcsdk_1.0.6.6\sunspotfrcsdk\lib\WPILibJ\build

BUILD FAILED

C:\eclipse\plugins\edu.wpi.first.javadev.sunspotfrcsdk_1.0.6.6\sunspotfrcsdk\install.xml:169: The following error occurred while executing this line:
C:\eclipse\plugins\edu.wpi.first.javadev.sunspotfrcsdk_1.0.6.6\sunspotfrcsdk\lib\WPILibJ\build.xml:43: The following error occurred while executing this line:
C:\eclipse\plugins\edu.wpi.first.javadev.sunspotfrcsdk_1.0.6.6\sunspotfrcsdk\ant\compile.xml:48: Error running javac.exe compiler
Any ideas about what has gone wrong, and how to fix it? It is going to be difficult to code without the class files. Thanks in advance.
Rod
Reply With Quote
  #2   Spotlight this post!  
Unread 16-08-2011, 03:24
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Eclipse library build errors

Quote:
Originally Posted by rthinman View Post
Code:
C:\eclipse\plugins\edu.wpi.first.javadev.sunspotfrcsdk_1.0.6.6\sunspotfrcsdk\ant\compile.xml:48: Error running javac.exe compiler
Any ideas about what has gone wrong, and how to fix it?
It looks like it can't find the java compiler (javac.exe).

Do you have the java JDK installed (not just the runtime? (JRE))?
Do you have your Java installation in your %PATH% system variable?

If those are configured properly, then I don't know.
That is a very un-specific error, though it is likely not a syntax error due to there not being a line number in a .java file.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!

Last edited by biojae : 16-08-2011 at 03:27.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-08-2011, 15:32
sakekasi sakekasi is offline
Registered User
AKA: Saketh Kasibatla
FRC #1160 (Firebird Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: San Marino, CA
Posts: 6
sakekasi is an unknown quantity at this point
Send a message via AIM to sakekasi
Re: Eclipse library build errors

got to Window --> preferences --> Java --> Installed JREs and add your jdk there.
__________________


Reply With Quote
  #4   Spotlight this post!  
Unread 18-08-2011, 23:41
rthinman rthinman is offline
Registered User
AKA: Rod Hinman
FRC #3881 (WHEAbots)
Team Role: Mentor
 
Join Date: Apr 2011
Rookie Year: 2011
Location: Kailua Kona, HI
Posts: 6
rthinman is an unknown quantity at this point
Re: Eclipse library build errors

Success!

I already had the JDK installed on the PC, I had already added its JRE to Eclipse's preferences.

The critical piece was the PATH variable. Thanks!
Reply With Quote
  #5   Spotlight this post!  
Unread 24-08-2011, 22:29
nealpatel nealpatel is offline
Registered User
FRC #1777
 
Join Date: Jan 2010
Location: Lenexa, KS
Posts: 8
nealpatel is an unknown quantity at this point
Re: Eclipse library build errors

What do you mean by %PATH% variable? I'm having the same issue and I do have the JDK installed.


EDIT: Never mind, Eclipse was pointing to JRE instead of the JDK, build works fine now!

By any chance, could anyone help with with Eclipse showing "The import edu cannot be resolved" when making new FRC Simple Project. I installed http://first.wpi.edu/FRC/java/eclipse/update/stable/ and followed http://grantgumina.boldlygoingnowhere.org/blog/?p=61


Any help would be appreciated!
__________________
-------------------------------------------------
Neal Patel
Team 1777
Shawnee Mission West
Viking Robotics

e-mail: neal.patel11@yahoo.com

Last edited by nealpatel : 24-08-2011 at 22:37.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi