Click here to Skip to main content
15,912,977 members
Home / Discussions / Java
   

Java

 
AnswerRe: Audio Files in socket programming. Pin
san-shiro{701}10-Feb-10 11:43
san-shiro{701}10-Feb-10 11:43 
QuestionREG: SSH Pin
sangeethanarayan22-Jan-10 2:08
sangeethanarayan22-Jan-10 2:08 
AnswerRe: REG: SSH Pin
Richard MacCutchan22-Jan-10 3:59
mveRichard MacCutchan22-Jan-10 3:59 
QuestionProblem in SetBoundaryModes with Option Clamp Pin
002comp20-Jan-10 20:32
002comp20-Jan-10 20:32 
Questionimplementing term frequency and inverse document frequency in java Pin
Abiodun Modupe19-Jan-10 12:46
Abiodun Modupe19-Jan-10 12:46 
AnswerRe: implementing term frequency and inverse document frequency in java Pin
Richard MacCutchan19-Jan-10 22:39
mveRichard MacCutchan19-Jan-10 22:39 
AnswerRe: implementing term frequency and inverse document frequency in java Pin
Cedric Moonen19-Jan-10 22:53
Cedric Moonen19-Jan-10 22:53 
Questionjava and windows vista Pin
StrayGrey18-Jan-10 3:58
StrayGrey18-Jan-10 3:58 
A contact of mine is trying to learn java programming and has started with the Herbert Schildt book Java A Beginners Guide.
His OS is Windows Vista onto which he has installed NetBeans and Eclipse.

He has asked me for help but even though I am a programmer I only use Linux so am not sure that my Vista skills are adequate other than fixing his PATH environment.
His Java version is:-
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

His 1st program is:-
[code]
/* This demonstrates a variable.
call this file Example2.java.
*/
Class Example2 {
public static void main(String args[ ]) {
int var1; // this declares a variable
int var2; // this declares another variable

var1 = 1024 // this assigns 1024 to variable 1

System.out.println("var1 contains" + var1);

var2 = var1 / 2;

System.out.println("var2 contains var1 / 2: ");
System.out.println(var2);
}
}
[/code]
but

javac Example2

error: Class names, 'Example2', are only accepted if annotation processing
is explicitly requested


How does he fix this?

BTW The above compiles and runs fine on my Ubuntu system....Smile | :)

Regards,
Alf Stockton

AnswerRe: java and windows vista Pin
David Skelly18-Jan-10 4:31
David Skelly18-Jan-10 4:31 
AnswerRe: java and windows vista Pin
StrayGrey18-Jan-10 18:05
StrayGrey18-Jan-10 18:05 
AnswerRe: java and windows vista Pin
StrayGrey18-Jan-10 4:37
StrayGrey18-Jan-10 4:37 
GeneralRe: java and windows vista Pin
TorstenH.19-Jan-10 2:36
TorstenH.19-Jan-10 2:36 
Questionsearch code for network monitoring Pin
manu.o17-Jan-10 5:52
manu.o17-Jan-10 5:52 
QuestionHow to do Tiling Of Textures? Pin
002comp15-Jan-10 4:46
002comp15-Jan-10 4:46 
QuestionChange size of Textures Pin
002comp14-Jan-10 20:36
002comp14-Jan-10 20:36 
AnswerRe: Change size of Textures Pin
002comp14-Jan-10 22:49
002comp14-Jan-10 22:49 
GeneralRe: Change size of Textures( Plz help me somebody) Pin
002comp15-Jan-10 0:39
002comp15-Jan-10 0:39 
Questionusing jmxremote and JConsole Pin
tas282614-Jan-10 5:50
tas282614-Jan-10 5:50 
QuestionI need ebay program Pin
totolcm13-Jan-10 2:16
totolcm13-Jan-10 2:16 
AnswerRe: I need ebay program Pin
JustWorking13-Jan-10 2:44
JustWorking13-Jan-10 2:44 
AnswerRe: I need ebay program Pin
TorstenH.14-Jan-10 2:42
TorstenH.14-Jan-10 2:42 
QuestionHow to store double values in color3f? Pin
002comp12-Jan-10 23:04
002comp12-Jan-10 23:04 
AnswerRe: How to store double values in color3f? Pin
Richard MacCutchan12-Jan-10 23:44
mveRichard MacCutchan12-Jan-10 23:44 
AnswerRe: How to store double values in color3f? Pin
David Skelly13-Jan-10 1:50
David Skelly13-Jan-10 1:50 
GeneralRe: How to store double values in color3f? Pin
Richard MacCutchan13-Jan-10 2:49
mveRichard MacCutchan13-Jan-10 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.