Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   using an IDE other than NetBeans for Java (http://www.chiefdelphi.com/forums/showthread.php?t=86088)

isaacdl 13-06-2010 17:50

using an IDE other than NetBeans for Java
 
I've got an older laptop (256mb RAM, 1.6ghz Pentium 4) that I kind of want to use as a programming laptop (so I have something to take to programming meetings and not always have to borrow one). However, it doesn't meet the minimum requirements to run NetBeans (I've tried anyway...those requirements are there for a reason :P ). Is there any other, leaner, IDE that I could use? I know there are other options, but is there a way to run/get the code on the cRio other than using NB?
I'm willing to run Windows or Linux, I'm bi-operating-system :P

thanks
Isaac

B.Johnston 13-06-2010 19:39

Re: using an IDE other than NetBeans for Java
 
isaac,

I'm not sure what options you've chosen to add to the install, but netbeans (6.80) is able to run on a 7year old sony FRV31 laptop with win xp 512M ram and 1.6g cpu.

It takes about 90 sec to load but it responds as fast as i can type java code.

bruce

Robototes2412 13-06-2010 19:41

Re: using an IDE other than NetBeans for Java
 
all you need is Ubuntu and to install netbeans and the stuff, you can then use your choice of editors to edit the robot code (go nano!) and build it with ant

isaacdl 13-06-2010 19:48

Re: using an IDE other than NetBeans for Java
 
B.Johnston:
As my post states, the laptop has 256mb of RAM. Not 512. As per the NetBeans system requirements, 512mb of RAM is required. I did attempt to use it, and while it would start, and I *could* write code, it was too slow to be usable. It could not even keep up with my typing (which is not supernaturally fast by any means).

Robototes2412:
How do I build with Ant? (I know it's how build parameters are passed, but how do I make an Ant script/use it?) And why do you say I should install Netbeans?

gblake 13-06-2010 21:57

Re: using an IDE other than NetBeans for Java
 
I know this probably isn't the answer you are looking for, but... You can use any editor, and compile with a very simple one-line batch file.

If you want the color coding, syntax checking, etc. that comes with a typical IDE; then follow the other folks' advice.

If you just want to modify or write a few lines of code and compile it along with other pre-existing code; just use any non-WYSIWYG editor, and the command line syntax that is explained in the Windows or Linux sections of this tutorial. http://java.sun.com/docs/books/tutor...ava/index.html

IDEs are fine things to use (I use NetBeans); but they are certainly not required.

Blake
PS: If there is some complicated magic that a NetBeans plug-in uses to xfer results into the cRIO, then my suggestion falls flat. If that step can also be accomplished with a command line or two in a batch file, then you are off to the races.

isaacdl 13-06-2010 22:01

Re: using an IDE other than NetBeans for Java
 
Quote:

Originally Posted by gblake (Post 966502)
I know this probably isn't the answer you are looking for, but... You can use any editor, and compile with a very simple one-line batch file.

If you want the color coding, syntax checking, etc. that comes with a typical IDE; then follow the other folks' advice.

If you just want to modify or write a few lines of code and compile it along with other pre-existing code; just use any non-WYSIWYG editor, and the command line syntax that is explained in the Windows or Linux sections of this tutorial. http://java.sun.com/docs/books/tutor...ava/index.html

IDEs are fine things to use (I use NetBeans); but they are certainly not required.

Blake

I don't absolutely need an IDE, but how would you recommend getting the code onto the cRio in a format that it'll run?

gblake 13-06-2010 22:13

Re: using an IDE other than NetBeans for Java
 
Quote:

Originally Posted by isaacdl (Post 966503)
I don't absolutely need an IDE, but how would you recommend getting the code onto the cRio in a format that it'll run?

Take a look at the PS I added to my post while you weren't looking :)

However, I am confident (I would bet a nice dinner but not a paycheck) that a very small handful of command line entries will accomplish the transfer.

Take a look at any log files the Netbeans method leaves behind, or open up (via Notepad/Wordpad) any built-in batches/scripts/macros to see what is happening under the covers. If you still can't find out what is going on behind the curtain, contact whoever supports the Java/cRIO code given to teams and/or put into NetBeans. Somebody will know how to do the transfer from a command line.

I have never worked with an FRC cRIO; but heck, it's just a computer. Hopefully what you FRC guys are using is just a bundling of standard methods with a tiny bit of NetBeans added-value wrapped around it.

Blake

isaacdl 13-06-2010 22:33

Re: using an IDE other than NetBeans for Java
 
I know for a fact that stuff is FTP'd onto the cRio, *but* I don't know what to put on there, or where to put it. Yeah, if no one else has any other ideas, I'll start looking for a FRC-connected person.

Robototes2412 14-06-2010 10:49

Re: using an IDE other than NetBeans for Java
 
the FRC ant script is all that is needed, I use CLI to demonstrate programming to freshmen

AJ R 14-06-2010 11:10

Re: using an IDE other than NetBeans for Java
 
Have you tried eclipse? We used it at school this year and its free.

isaacdl 14-06-2010 11:47

Re: using an IDE other than NetBeans for Java
 
I pretty much know that there are other IDE's now. What I need to know is how to get the code onto the cRio. How do I use the Ant script?
Also, if I where to use another IDE (or text editor for that matter), how do I make sure that when I turn it into a jar, the interpreter can find the WPILibJ stuff?

Robototes2412 14-06-2010 21:52

Re: using an IDE other than NetBeans for Java
 
I am assuming you use linux in my demo

cd to your project directory
run this:
Code:

ant build deploy
it will build and deploy

artdutra04 14-06-2010 22:42

Re: using an IDE other than NetBeans for Java
 
$20 for a 1Gb RAM stick from Newegg will solve all these problems.


All times are GMT -5. The time now is 07:59.

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