Modifying JAVA code using NB Eclipse ...

Discussion to talk about software related topics only.
Post Reply
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Modifying JAVA code using NB Eclipse ...

Post by Mark »

I am working with the MOD5282 on a project that uses the serial ports, web support, and the eight channels of the ADC (actually 16, but we switch in banks of eight). The MOD5282 development kit ships with a very nice demonstration titled "Mod5282FactoryDemo". This demo has a neat little JAVA applet that plots one channel of the ADC readings to a web based graph window.

I am looking to grow this demo into plotting all eight channels of the ADC readings. I am alos looking to making the y-axis scalable from the calling function(s), and making the x-axis labels display in time increments as opposed to counts.

I have already installed on my machine the full version of Eclipse and the JAVA SE/EE SDK. I did create a new project, then imported the "nbplot.java" source. Can anyone point me in the right direction on how to take the existing "nbplot.java" souce and recompile into the required "nbplot.class" file required for the web page(s)? Anyone out there who is an expert in JAVA care to take a stab at this? :roll:

Mark
User avatar
Forrest
Posts: 288
Joined: Wed Apr 23, 2008 10:05 am

Re: Modifying JAVA code using NB Eclipse ...

Post by Forrest »

Hello,

First, make sure you have the Java SDK installed. Sun releases about 100000 different types of java. You just need the one that lets you call javac from the command line.

Once verified, open up a cmd prompt and navigate to the file, then, to make the class file, type:

javac NBPlot.java -d html
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: Modifying JAVA code using NB Eclipse ...

Post by Mark »

Thanks for the reply, and boy do I hear you on the 100000 releases of JAVA. I am sure that a class can indeed be compiled directly from the Eclipse application, but I quit and found the javac command like you said so that I could manually compile.

Now to modify to plotting routines! Not being a JAVA expert I am finding these routines a little confusing, even with my expertise in C#. Once I get this accomplished I will repost up to this forum for consumption.
marshapt
Posts: 6
Joined: Fri Aug 14, 2009 7:24 am

Re: Modifying JAVA code using NB Eclipse ...

Post by marshapt »

Mark -- did you ever get those other plots working? Thanks! Pat
Post Reply