Skip to main content

Need help building timingframework

4 replies [Last post]
dwalend
Offline
Joined: 2003-06-15
Points: 0

I'm trying to add some better error handling to the timing framework code (to get a stack trace along with "[junit] Problem invoking method public void net.walend.graphview.EdgeView.setSpline(net.walend.graphview.EdgeView$Spline) in object E->B Spline126.0,144.0 128.0,147.0 129.0,150.0 130.0,154.0 132.0,163.0 130.0,166.0 130.0,174.0 126.0,256.0 146.0,283.0 115.0,358.0 111.0,366.0 106.0,373.0 100.0,379.0 in setValuejava.lang.NullPointerException" and to make the code tell me what getter or setter is missing or not visible enough instead of just announcing that there is some problem).

I need some help running the build. Both command line and netbeans are giving me

BUILD FAILED
/Users/dwalend/projects/opensource/timingframework/nbproject/build-impl.xml:76: Platform is not correctly set up

What's not set up correctly?

(I'm short diagnostic information in three spots already. The project is feeling recursive.)

Thanks,

Dave

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rah003
Offline
Joined: 2004-05-26
Points: 0

This is a so to say "NetBeans friendly" project. So you should be able open it in netbeans and work with it straight away.
To run build from any other environment you need to setup it up the way build understands. Perhaps the easiest way to do it is to create private.properties file with following line in it:
[code]
platforms.JDK_1.5.home=/absolute/path/to/jdk1.5.0
[/code]
Put this file in the nbproject/private directory of the timingframework and try to run the build again.
Alternatively you can also provide this property directly at the build time with -Dplatforms.... option.

HTH,
Jan

dwalend
Offline
Joined: 2003-06-15
Points: 0

Thanks for the suggestion, Jan. No luck. I started hacking through some odd problems, got the compiler to fire up. Now the command line dies asking for one of targetOS, dirSep or pathSep (probably from an old version of ant). Netbeans still has the same old problem.

I decided to ask more questions.

Which version of Netbeans? I'm using 5.5.1. It typically refers to JDK_1.5, not JDK_5.

Thanks,

Dave

rah003
Offline
Joined: 2004-05-26
Points: 0

> Which version of Netbeans? I'm using 5.5.1. It typically refers to JDK_1.5, not JDK_5.

Don't know which version of Netbeans was used to set it up. I guess whatever was mainstream about 1.5 year ago. Still it should run with any recent version.
With the property, you are right it was supposed to be:
[code]
platforms.JDK_5.home=...
[/code]

You should not need anything else to be able to run ant build from command prompt.
maybe few more details:
java - 1.5.0_07
ant - 1.6.5
and nothing on the classpath.

If it still doesn't work could you post the errors you get?
Cheers,
Jan

dwalend
Offline
Joined: 2003-06-15
Points: 0

Thanks, Jan.

The only error I get is "Platform is not correctly set up."

I'm using Mac OSX, so JAVA_HOME is /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home .

Setting platforms.JDK_5.home to that didn't help, but setting it to /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin got past the "Platform is not correctly set up." problem. Hacking the /bin out of the javac step got it to compile and produce a new .jar for me on the command line.

That's got me through the night.

My other netbeans projects are set up to use "default" instead of a specific JDK. They work fine.

Hope that helps,

Dave