Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE 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
Joined
Apr 10, 2013
Messages
42
Location
GB
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
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

Back
Top