• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

newbie questions

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I installed the jdk1.3 on win2k professional platform and added the following 2 path in the environment variables setting.
CLASSPATH
E:\java\jdk1.3.1_01\lib\;
PATH
E:\java\jdk1.3.1_01\bin\;%PATH%;
However, when I javac the file.java, it shows a 100 lines of error. When I did it in JBuilder 5 which created the catch dependence folder, the file.java can be compiled under
console mode without any error.
I think that my path settings may have something wrong and any one could help me?
And I have the following questions:
1. what is the difference between javax.swing and java.awt as both of them are used for
GUI? or Was .awt replaced by swing starting from 1.3?
2. what is the meaning of primitives? int, boolean and char?
3. what is the difference between .jpx and .jpr under JBuilder project?
4. What is the meaning of the following statement?
"The initial value is zero in the case of an array of numerical values, false for boolean arrays, '\u0000' for arrays storing type char, and null for an array of a class type."
5. Any other recommended Java Forum and resources web sites?
6. Does Java use Pointer '*' and Reference '&' like C++?
Thanks in advance.
gogo
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>CLASSPATH

>E:\java\jdk1.3.1_01\lib\;

Should point to the directory containing your source (*.java) files

>PATH

>E:\java\jdk1.3.1_01\bin\;%PATH%;

~javahome\jdk1.3.1_01\bin
seems ok.

>And I have the following questions:

Lots of questions for one thread.

>1. what is the difference between javax.swing and java.awt as
>both of them are used for GUI? or Was .awt replaced by swing
>starting from 1.3?

java.awt is heavyweight while javax.swing is lightweight. The two should not be mixed. The idea was for swing to pretty much replace awt.

>2. what is the meaning of primitives? int, boolean and char?

primitive = something other than an object
int = 32 bit integral number
boolean = true/false
char = unicode character

>3. what is the difference between .jpx and .jpr under JBuilder
>project?

No idea

>4. What is the meaning of the following statement?

>"The initial value is zero in the case of an array of numerical
>values, false for boolean arrays, '\u0000' for arrays storing
>type char, and null for an array of a class type."

Which part don't you understand?
All arrays are initialized upon construction. What they are initialized to depends on the type of array. This is telling you the default initialization values for each type of array.

>5. Any other recommended Java Forum and resources web sites?

Lots of forums and resources here on javaranch. Explore them.

>6. Does Java use Pointer '*' and Reference '&' like C++?

No.

 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
gogo,

Please read http://www.javaranch.com/name.jsp and re-register. We'd like you to continue to post here.

Thanks.
 
Don't play dumb with me! But you can try this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic