Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java sample code, getsession doesn't work (Ubuntu)

Status
Not open for further replies.

lugan2

Mechanical
Apr 10, 2013
42
Hello, I was trying to use the UG sample testing Java code, InterOP.java, please see the attached code.
It compiles fine, but doesn't return the session's handler. (doesn't go through line 28, and throws a catch. the 'theUfSession' returns NULL);

Does anyone know how to solve it? It is due to environment configuration mistakes?

Many thanks!
 
 http://files.engineering.com/getfile.aspx?folder=e1bab7e5-2771-46d3-85c4-f85b798aad6e&file=InterOP.java
Replies continue below

Recommended for you

I presume this code gets compiled to a JAR to run outside NX?
Try running it from an NX Command Window. To open one of these use you start menu (see attached image).


Graham Inchley, Systems Developer.
NX6, NX8.5(testing)
 
thanks for the reply Graham. I managed to solve the problem. I didn't update the bash file so leads to the problem.

Now it works.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor