SDK CONFIGURATION
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/08/2004 at 14:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) :---------
I am a newbie and learning basic Java programming.
I have had a standard edition of SDK 1.4 on my system and JCreator on top of that.
Up till now everything worked well.
I do not know the difference between the JSE 1.4 and J2EE.
I got my SDK off a file share utility than go to Java.sun website as it easier
to make a choice.
I guess I am too lazy to read all the technical stuff.
The problem started with not being able to execute following error detection... The rest of the code worked but every time
I tested for the following code I got a java lang error. Initially I thought I had syntax problem. But I noticed all my applications
that worked previously were behaving the same way.
if(response==null)
{
JOptionPane.showMessageDialog(null,"You clicked Cancell");
System.exit(0);
}
else if(response.equals("")
{
JOption.showMessageDialog(null,"You sent an empty string");
System.exit(0);
}
I eventually decided to reinstall the SDK and JCreator. But I had to decide whether
to install JSE or J2EE. I downloaded both then reinstalled JCreator. This procedure
normally worked and I did not need to set the path under enviornment variables.
But I am finding that this does not work now. Non of my previous applications do not compile or run.
I get following error:
--------------------Configuration: Test - j2sdk1.4.1_02 <Default> - <Default>--------------------
Error : Invalid path, C:\j2sdk1.4.1_02\bin\javac.exe -classpath "D:\JavaFiles\Test\classes" -d D:\JavaFiles\Test\classes D:\JavaFiles\Test\src\Test.java"
Process completed. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/08/2004 at 15:23, xxxxxxxx wrote:
Hello again, I forgot to mention that the problem occured when I was attempting to test for the mentioned code
the error was NullPointerException with no stack trace -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/08/2004 at 16:13, xxxxxxxx wrote:
Just to let you know that I scrapped SDK 1.4 thinking it is a bug problem and reinstalled the older 1.3 version.
Fortunately this time, when I installed JCreator it saw the SDK and compiled and ran most of my previous applications. However the originating problem exists.
I keep getting NullPointerException error when try to run following file
public static void main(String args[])
{
String response;
String moreBankingBusiness;
moreBankingBusiness=JOptionPane.showInputDialog
("Do you want to do some banking?");
moreBankingBusiness=moreBankingBusiness.toUpperCase();
while(moreBankingBusiness.equals("YES"))
{
response=JOptionPane.showInputDialog
("***Select Banking Options***\n\n"+
"1 for deposit" + "\n"+"2 for withdrawal"+
"\n" +"3 for balance query");
if(response==null)
{
JOptionPane.showMessageDialog
(null,"You clicked cancel");
System.exit(0);
}
}// end of while
} // end of main
}// end of class
I suspect the text in blue is the offending code.
I would be most grateful for a solution.
Regards
SS -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/08/2004 at 02:04, xxxxxxxx wrote:
This forum is for the Cinema 4D SDK. This is a coffee and c++ forum and only for Cinema 4D SDK related problems.
What you are asking is completely out of scope of this forum, you will get much better replies from a Java specific message board.