Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

the same program can't run. throw the exception: java.lang.NoClassDefFoundError: nxopen/NXException

Hallo, everyone,

 

i wrote a program before 8 months but it can't run now.

 

there are some code of my codes

 

public Histcheck(String start,String over){

try {
theUFSession=(UFSession) SessionFactory.get("UFSession");

lw=theUFSession.ui();
lw.openListingWindow();
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
beginn=sdf.parse(start);
end=sdf.parse(over);
this.testYear=beginn.getYear();
} catch (NXException e) {
out.append("NX failed in Construct");
protokoll.ta.append("NX failed in Construct");
e.printStackTrace();
} catch (RemoteException e) {
out.append("Remote failed in Construct");
protokoll.ta.append("Remote failed in Construct");
e.printStackTrace();
} catch (ParseException e) {

out.append("Parse failed in Construct");
protokoll.ta.append("Parse failed in Construct");
e.printStackTrace();
}
}

 

it returns:

 

nxopen.NXException: Search Directory for Manifest files can not be opened

...

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

 

Also, i can't get the UFSession.

 

i use java of version 1.8.25

 

ps: my program runs on other pcs in the labor, but not on my pc.

 

Thank you in advance.

 

4 REPLIES

Re: the same program can't run. throw the exception: java.lang.NoClassDefFoundError: nxopen/NXExcept

I do not use java but surely the lines of code

 

lw=theUFSession.ui();
lw.openListingWindow();

 

cannot be correct.  The first line defines lw as the ui interface so that no way the second line can open the listing window?

 

Frank Swinkels

Re: the same program can't run. throw the exception: java.lang.NoClassDefFoundError: nxopen/NXExcept

thanks for your answer.

i have defined that UFUi lw=null;

my code should not have problem, because it runs on other pcs.

just not run on my pc.

return the message: nxopen.NXException: Search Directory for Manifest files can not be opened.

 

Solution
Solution
Accepted by topic author prime
‎09-27-2016 09:55 AM

Re: the same program can't run. throw the exception: java.lang.NoClassDefFoundError: nxopen/NXExcept

If anybady hat this problem too, you can check the Java Version wenn it even doesn't work, you can also your windows new install.

My program works after i installed windows new.

 

Re: the same program can't run. throw the exception: java.lang.NoClassDefFoundError: nxopen/NXExcept


prime wrote:

If anybady hat this problem too, you can check the Java Version wenn it even doesn't work, you can also your windows new install.

My program works after i installed windows new.

 


That solution seems a bit... extreme.