Go to Post I want my students to learn passion. I want them to care so much about what they are doing that they infect other people with it... be that FRC or anything else. - marshall [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 01-02-2012, 16:12
WilliamY WilliamY is offline
Registered User
FRC #0342
 
Join Date: Feb 2012
Location: Ladson, SC
Posts: 2
WilliamY is an unknown quantity at this point
Question FRC Plugins Won't Install (Netbeans on Fedora)

Now, this isn't an immediate issue, seeing as how I've just been using Windows, but it's still bugging me. When the install.xml runs, I get this error (has been seen over several plugin versions).
Code:
/home/team342/sunspotfrcsdk/install.xml:183: The following error occurred while executing this line:
/home/team342/sunspotfrcsdk/lib/WPILibJ/build.xml:43: The following error occurred while executing this line:
/home/team342/sunspotfrcsdk/ant/preverify.xml:54: Execute failed: 
java.io.IOException: Cannot run program "/home/team342/sunspotfrcsdk/bin/preverify" (in directory "/home/team342/sunspotfrcsdk/lib/WPILibJ"): java.io.IOException: error=2, No such file or directory
Those lines it references are
Code:
<ant dir="${wpilibjhome}" antfile="build.xml" inheritall="false" target="create-lib"/>
Code:
<antcall target="jar-app"/>
and
Code:
<exec executable="${preverify.executable}" failonerror="true">
in that order.

This appears to be nowhere here or on Google (at least as far as I have seen), leading me to believe this is an issue with my machine. I have tried this on various versions of both Netbeans and Java. I checked alternatives to make sure Java was assigned correctly. Anybody have a clue?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2012, 12:54
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: FRC Plugins Won't Install (Netbeans on Fedora)

I'm not seeing this on Mac or Windows.

The first thing to check is that you do have an executable program in /home/team342/sunspotfrcsdk/bin/preverify

Does this only happen on install/netbenas startup, or does it happen on suite/deploy/run also?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2012, 18:23
WilliamY WilliamY is offline
Registered User
FRC #0342
 
Join Date: Feb 2012
Location: Ladson, SC
Posts: 2
WilliamY is an unknown quantity at this point
Re: FRC Plugins Won't Install (Netbeans on Fedora)

Preverify is there and executable. It does this every time I run it, both at startup and manually.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2012, 08:30
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 62
java4first is an unknown quantity at this point
Re: FRC Plugins Won't Install (Netbeans on Fedora)

We're using Fedora 14 ... some things to look for (it's hard to remember, as we didn't have any problems this year getting Netbeans and Eclipse running on our Linux laptops). And these "fixes" may not have been what actually fixed it.

(1) Can't use the default open Java that comes with Fedora? We've installed the download from Sun. Make sure to fix your path to point to the right location (modify bash files).

(2) Can't use 64-bit Java? Even on the 64-bit laptops we always install the 32-bit SDK and JRE - before installing NetBeans (although I suppose there is a way, like in Eclipse, you can say which JRE / SDK you are using).

Hope that helps ... I seem to recall similar problems last year when we first tried to support Windows, Linux and MacOS to make everyone happy ;-)
Reply With Quote
  #5   Spotlight this post!  
Unread 26-03-2012, 01:26
Kevin Wang's Avatar
Kevin Wang Kevin Wang is offline
Software Engineer, Webmaster
FRC #0694 (StuyPulse)
Team Role: Alumni
 
Join Date: Jun 2010
Rookie Year: 2010
Location: New York
Posts: 28
Kevin Wang is an unknown quantity at this point
Re: FRC Plugins Won't Install (Netbeans on Fedora)

Excuse the necropost, but I found a solution if there are any 64-bit Linux users out there with the same problem.

I found the solution in a cached copy of a post from a dead blog:

Quote:
While migrating our development laptops off Windows and towards Linux, we discovered that WPIlib would not build, preventing us from actually doing development work.
The preverify binary would fail to execute, with the ant script complaining about an IOException.

I poked through a hexdump and saw references to ld-linux.so.2 and glibc, both of which I knew were installed. I took a wild guess and installed ia32-libs (Ubuntu's metapackage for a couple of common 32-bit libraries). After that, there were no issues with either compiling WPIlib or our own code.

TL;DR: If you're running a 64-bit linux distribution, install 32-bit glibc. Otherwise WPIlib will fail to compile.

I find it interesting that there is no precompiled 64-bit binary, despite the ant scripts recognizing 64-bit linux installs.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2013, 15:05
ozzloy ozzloy is offline
Registered User
FRC #0812
 
Join Date: Dec 2005
Location: cheesy poofs and midnight mechanics
Posts: 3
ozzloy is an unknown quantity at this point
Re: FRC Plugins Won't Install (Netbeans on Fedora)

Quote:
Originally Posted by Kevin Wang View Post
Excuse the necropost, but I found a solution if there are any 64-bit Linux users out there with the same problem.

I found the solution in a cached copy of a post from a dead blog:
i just did `sudo apt-get install -y ia32-libs` and it worked! i didn't even have to close and reopen netbeans. just hit the build button again.

thanks!
Reply With Quote
  #7   Spotlight this post!  
Unread 15-01-2013, 14:30
chadbarbe1 chadbarbe1 is offline
Registered User
AKA: Chad Barbe
FRC #1450 (XQ Robitx)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2006
Location: Rochester, NY
Posts: 8
chadbarbe1 is an unknown quantity at this point
Cool Re: FRC Plugins Won't Install (Netbeans on Fedora)

Thanks for this thread!!!

Using the information here I was able to get my robot project working on fedora 17 using yum with this command:

sudo yum install glibc-devel.i686 glibc.i686

At least I can get it to the point of trying to connect to the robot - which is farther than i was before! Don't have a robot at work to test with but i'll be able to try it this weekend.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2013, 21:52
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: FRC Plugins Won't Install (Netbeans on Fedora)

Awesome. Thanks for this. Was stumped at the error.
__________________
All opinions are my own.
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 12:47.

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