Import doesn't IMPORT!

Im using JCreator and it wont let me import any of the import codes.Do I have to do something to fix it or just find another program?Thanks,STARZ
[173 byte] By [STARZa] at [2007-11-26 21:45:15]
# 1
Let me guess you are trying to import a third party item ?Have you ever coded on a command line ?A little small example might also help us be able to give you an answer.
Aknibbsa at 2007-7-10 3:33:50 > top of Java-index,Java Essentials,New To Java...
# 2
Check whether JCreator is properly configured: JVM, ...If so, check your package and class names.hth
java_2006a at 2007-7-10 3:33:50 > top of Java-index,Java Essentials,New To Java...
# 3
what do you really mean?
georgemca at 2007-7-10 3:33:50 > top of Java-index,Java Essentials,New To Java...
# 4
But by the way, you are right. Import doesn't import and never has imported. Import is only there to make code cleaner to write and read
tjacobs01a at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 5
> But by the way, you are right. Import doesn't import> and never has imported. Import is only there to make> code cleaner to write and readthat's almost guaranteed to confuse the h3ll out of a lot of people :-)
georgemca at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 6
> that's almost guaranteed to confuse the h3ll out of a> lot of people :-)When ignorance is bliss...
tjacobs01a at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 7

You guys don't get it.I'm new even a simple codes that I make don't work.

Simple example.

import java.util.Scanner;

public class project

{

public static void main(String args[ ])

{

Scanner sc=new Scanner();

double NUM=0;

System.out.println("Enter A Number");

NUM=sc.nextDouble();

}

}

Thanks for the help,

Starz

P.S. What program do you use to code?

STARZa at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 8

> You guys don't get it.I'm new even a simple codes

> that I make don't work.

>

> Simple example.

> import java.util.Scanner;

>

> public class project

> {

> public static void main(String args[ ])

> {

> Scanner sc=new Scanner();

> double NUM=0;

> System.out.println("Enter A Number");

> NUM=sc.nextDouble();

> }

> }

>

> Thanks for the help,

> Starz

>

> P.S. What program do you use to code?

Have you ever done it in command line ?

What error are you getting that makes you think the import isn't working correctly ?

Aknibbsa at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 9
What problem have you got that make you think import is not import ?
rym82a at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 10
I don't think you phrased that right.
STARZa at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 11
> I don't think you phrased that right.what exactly is it you're trying to import? don't use Jcreator, it's confusing you. use textpad or something
georgemca at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 12
Text Pad?How? How would I compile it and test it?
STARZa at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 13
> I don't think you phrased that right.You haven't phrased anything right yet. Your posts are useless. Are you getting error messages? Then tell us what they are. And don't paraphrase them or describe them, copy them and paste them into your post.
DrClapa at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 14

> Text Pad?

> How? How would I compile it and test it?

with a java compiler a JVM and Junit, perhaps? or is that not the sort of testing you meant? this is why beginners need to avoid IDEs, they just don't know how to live without their nice safe crutch. TextPad is actually pretty java-friendly, if you've got the jdk installed, it will almost certainly pick it up, and allow you to compile and run java from within it, or you could - and I know this is a stretch - use *gasp* command-line tools!

nobody needs an IDE, they just make life more easy for those who know what they need from one

georgemca at 2007-7-10 3:33:51 > top of Java-index,Java Essentials,New To Java...
# 15

> Text Pad?

> How? How would I compile it and test it?

<voice type="drill sergeant">

LIKE A REAL MAN! ON THE COMMAND LINE!

</voice>

Actually TextPad come with hooks for that. They appear on the Tool menu, and have short cuts Ctrl+1 (compile) and Ctrl+2 (execute). If you do not see them on the Tools menu, take a look at: Configure | Preferences ... | Tools. I forget, but you may need to click on something on that dialog to add the Java commands to the Tools menu.

DrLaszloJamfa at 2007-7-21 18:25:30 > top of Java-index,Java Essentials,New To Java...
# 16

> Text Pad?

> How? How would I compile it and test it?

I think the best way to start Java is have a look on tutorial first.

TextPad is an editor which you can write your Java code.

You need a JDK which compile and run your Java program.

If you read the tutorial, all instructions can be found.

rym82a at 2007-7-21 18:25:30 > top of Java-index,Java Essentials,New To Java...
# 17
Well the reason for using J Creator is thats what we use in school.O well anyway can some one give me a link to get jdk with some sort of guide.Muckh Thanks,STARZ
STARZa at 2007-7-21 18:25:30 > top of Java-index,Java Essentials,New To Java...
# 18
Tutorial http://java.sun.com/docs/books/tutorial/JDK 5.0 Update 11 http://java.sun.com/javase/downloads/index_jdk5.jsp
rym82a at 2007-7-21 18:25:31 > top of Java-index,Java Essentials,New To Java...
# 19

> nobody needs an IDE, they just make life more

> easy for those who know what they need from one

or rather, if you can't work without one you should be in another line of work. Something like delivering mail (but how you'd get around without a GPS if you can't find your way around a computer without an IDE I don't know) or flipping burgers.

jwentinga at 2007-7-21 18:25:31 > top of Java-index,Java Essentials,New To Java...
# 20

Some time I feel Sun would have bundled an IDE along with java since its inception just as microsoft MSDN Studio. Now for Java different people use different IDE's and its more confusing for a novice what to pick.

Personally I feel that new developers should work command line and use a vi/vim like editors(?). I have seen people use IDE like NB or Eclipse from their inception and finally end up not knowing any thing of java command line tools like javap, jdb or any VM_OPTIONS.

BalaSubrahmanyama at 2007-7-21 18:25:31 > top of Java-index,Java Essentials,New To Java...