holger alberty

Greenhorn
+ Follow
since Nov 22, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by holger alberty

Hey there Tony.

My CLASSPATH has the following value:

CLASSPATH C:\Programme\Java\jre7\bin
JAVA_HOME C:\Programme\Java\jre7\bin

And no user defined variabel.

Greets Holger
9 years ago
Hey folks, long time since i've been here. I've got the same problem as the last time i've posted here.
This time it's because i am still on a XP machine (yeah i know, i shouldn't use it, but it's not my PC it's my parents).
I have no user specific variable but i have a CLASSPATH, Path and the JAVA_HOME variable in system.

I go to the cmd get in the directory where i have the typical first "MooseGreetings.java" uncompiled and when i write : javac MooseGreetings.java, i get: it's written false and/or not to be found -,- i'd really could use some hel again!

Thanks a lot in advance!
9 years ago
According the "Beer Song" based on the example in "HeadFirst Java 2nd Edition.

this is my code i have windows 7 and i'm pretty sure, that's exactly what's printed in the example,prob is it sais i have errors in different places with differetnissues,BUT that can't be,would someone please be so kind to help a little ?

CODE:
---------------------------------------------------------------------------------------
public class BierLied {
public static void main(String[] args){
int bierAnzahl = 99;
String wort ="Flaschen";
while (bierAnzahl > 0){
if (bierAnzahl == 1){
wort ="Flasche";
}
System.out.printIn("bierAnzahl + " " + wort + "Bier im Kuehlschrank");
System.out.printIn("bierAnzahl + " " + wort + "Bier");
System.out.printIn("Hol eine raus.");
System.out.printIn("und lass sie rumgehen.");
bierAnzahl = bierAnzahl - 1;
if (bierAnzahl > 0){
System.out.printIn(bierAnzahl + "" +wort+ "Bier im Kuehlschrank");
}else{
System.out.printIn("Kein Bier mehr im Kuehlschrank");
}
}
}
}
---------------------------------------------------------------------------------------

i'd be grateful for any hint !! thanks in advance !
Moonfox


..i tried a few things and it seams that my commandline usually doesn't like "." (in syntaxes like: "System.out.printIn("..."); ..
13 years ago
^^ Hey there folks ...i've erased the classpath and pasted my current java directive ^^ now everything works ;)

Thanks again ! if i'm stuck again i'll return ;) hope that's a little longer then next few moments ;)
Cheers and Greetings
Holger
13 years ago
Hello Jesper,

thanks to you,too !

i'll look at your links right now

it's not about the code i think it's about the right directives where my java ist installed ^^..cause i've already compiled this.

i've written:

1.



2. saved that as MooseGreetings.java
3. compiled it via cmd,saying : javac MooseGreetings.java (worked cause the machine has created a CLASS file of MooseGreetings)
4. tried the comand : java MooseGreetings (if i do this,it sais that there is no class to be found,which is called MooseGreetings and that it's not going to finish its work and shut down working on this programcode)
5. and the other way around: MooseGreetings.java (this ends in giving it out on my browser,the whole code without exception)


Okay,i've erased everything what i've done til now in the directory and started anew (regarding the instructions of the "Hello World" doc).

everything is fine and works as it should until :



Run the Program

In the same directory, enter the following command at the prompt:

java HelloWorldApp



This is where it sais again that it can't find the class althpugh it has created one in the same directory °°
13 years ago
Hey there D.Ogranos ! ;)

thanks for the fast responding !,uhm when i've done what you've written f.e :



so ?! what now ?

Okay,it sais as follows if i run : java MooseGreetings

.
.
.
several "java-things" not found



(is there ANY way of copy/paste from my msdos cmd to this board ?)
13 years ago
Hello there everyone ;) !

Okay have a simple question.Yesterday i compiled several codes i've written on base of a book from the "Head first" series. (O'Reilly 2nd edition),done everything over the cmd panel,written my code in the normal standard texteditor of win7. saved everything under ".java".

So,when i begin in cmd i usually type in the section/folder where my java lies (comand: cd folder) then i write: "javac MyProgram.java",causing how i understand it,the JVM to produce another version of my code compiled,is that right til this point ? i don't have that much choice for the moment,in what to open that code,so i can give it out on the texteditor again,firefox, the Notepad,and wordeditor...thing is,i see no change in what the programms are writing and i think it should differ from the original,right ?. In my understanding,the output should just show me the "clean" message (this time no massage ^^).BUT it doesn't...so what would you recommend ?!

I know,some,if not all people will go like ("oh,man...don't even start asking THIS") cause,it's obviouse for people working every day in java,but here it is ^^
so please help me ;) !

Cheers and greetings Holger
13 years ago
At Andrew,i am sorry for spamming my one business into your thread,i apologize ! i'll open one on my own,now
13 years ago
sorry but,i new it,i'm confused...my classpath is : C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
and i have two different paths for my programfiles one for : Program Files (x86) and one simply called :Program Files my java directory is in the last mentioned ^^ so what now ? °°.My written example from this site,has it to be,or not to be in the same directory as my whole "java-going-on's" ? (i hope someone undestands what i just meant ^^)
13 years ago
Okay,no screenies. °° yeah ! that's good the "massage-thing"....hmmmmm if i leave everything else as "normal for my win 7 system ...cmd panel not even responses to : javac at all -,- ....okay i'll look into the links,thanks...although i don't think that' there's my answer....
13 years ago
Hey there ! is this problem solved already ? ^^

cause it seems not so °°

i have the exact same problem,i'm evry new to java...and would like to solve this...please can someone help me,too?

the thing is i'm german and so is my system ^^ but nevertheless i attached an screenie of my error massage

Cheers and hope ypu can help me !

moonfox
13 years ago