Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19250 > unrolled thread
| Started by | K <kalezwe@gmail.com> |
|---|---|
| First post | 2012-10-10 20:10 -0700 |
| Last post | 2012-10-13 09:02 -0700 |
| Articles | 13 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
Extreme beginer K <kalezwe@gmail.com> - 2012-10-10 20:10 -0700
Re: Extreme beginer markspace <-@.> - 2012-10-10 20:20 -0700
Re: Extreme beginer Lew <lewbloch@gmail.com> - 2012-10-11 00:07 -0700
Re: Extreme beginer K <kalezwe@gmail.com> - 2012-10-12 19:37 -0700
Re: Extreme beginer K <kalezwe@gmail.com> - 2012-10-12 19:36 -0700
Re: Extreme beginer Lew <lewbloch@gmail.com> - 2012-10-12 22:37 -0700
Re: Extreme beginer K <kalezwe@gmail.com> - 2012-10-13 12:18 -0700
Re: Extreme beginer markspace <-@.> - 2012-10-13 12:44 -0700
Re: Extreme beginer K <kalezwe@gmail.com> - 2012-10-13 14:30 -0700
Re: Extreme beginer Lew <lewbloch@gmail.com> - 2012-10-13 13:09 -0700
Re: Extreme beginer K <kalezwe@gmail.com> - 2012-10-13 14:31 -0700
Re: Extreme beginer markspace <-@.> - 2012-10-13 08:54 -0700
Re: Extreme beginer markspace <-@.> - 2012-10-13 09:02 -0700
| From | K <kalezwe@gmail.com> |
|---|---|
| Date | 2012-10-10 20:10 -0700 |
| Subject | Extreme beginer |
| Message-ID | <185c90a4-992e-46f2-9a65-6242485ab584@googlegroups.com> |
This is what I have in eclipse and when I run the program in regular and debug mode nothing seems to work only some code stuff appears at the bottom of the screen in some pane and I don't know why because in the book i'm reading thats not what happens
public class Class2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("hello");
}
}
[toc] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2012-10-10 20:20 -0700 |
| Message-ID | <k55dtu$cds$1@dont-email.me> |
| In reply to | #19250 |
On 10/10/2012 8:10 PM, K wrote:
> This is what I have in eclipse and when I run the program in regular
> and debug mode nothing seems to work only some code stuff appears at
> the bottom of the screen in some pane and I don't know why because in
> the book i'm reading thats not what happens
>
That "code stuff" might be important, dontcha think? Copy and paste it
here, exactly as it appears. Getting the details exactly correct are
important, otherwise we can't help you.
When I tried this just now, I saw the string "hello" appear on the
Console tab. Make sure you're looking at that one. When I deliberately
introduced an error, the errors also appeared in the Console tab.
>
> public class Class2 {
>
> /**
> * @param args
> */
> public static void main(String[] args) {
> // TODO Auto-generated method stub
> System.out.println("hello");
> }
>
> }
>
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-10-11 00:07 -0700 |
| Message-ID | <ad9a7570-8137-4e9a-a15f-a05b665ae083@googlegroups.com> |
| In reply to | #19251 |
markspace wrote: > K wrote: >> This is what I have in eclipse and when I run the program in regular >> and debug mode nothing seems to work only some code stuff appears at >> the bottom of the screen in some pane and I don't know why because in >> the book i'm reading thats not what happens > > That "code stuff" might be important, dontcha think? Copy and paste it That is, do not paraphrase it. > here, exactly as it appears. Getting the details exactly correct are > important, otherwise we can't help you. It's likely that the error messages you saw contain the answers you seek. > When I tried this just now, I saw the string "hello" appear on the > Console tab. Make sure you're looking at that one. When I deliberately > introduced an error, the errors also appeared in the Console tab. I am betting you didn't invoke the compiler or runtime correctly, K. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | K <kalezwe@gmail.com> |
|---|---|
| Date | 2012-10-12 19:37 -0700 |
| Message-ID | <0ea6f71e-7c1b-4819-add8-559bcca1c5e6@googlegroups.com> |
| In reply to | #19254 |
On Thursday, October 11, 2012 12:07:04 AM UTC-7, Lew wrote:
> markspace wrote:
>
> > K wrote:
>
> >> This is what I have in eclipse and when I run the program in regular
>
> >> and debug mode nothing seems to work only some code stuff appears at
>
> >> the bottom of the screen in some pane and I don't know why because in
>
> >> the book i'm reading thats not what happens
>
> >
>
> > That "code stuff" might be important, dontcha think? Copy and paste it
>
>
>
> That is, do not paraphrase it.
>
>
>
> > here, exactly as it appears. Getting the details exactly correct are
>
> > important, otherwise we can't help you.
>
>
>
> It's likely that the error messages you saw contain the answers you seek.
>
>
>
> > When I tried this just now, I saw the string "hello" appear on the
>
> > Console tab. Make sure you're looking at that one. When I deliberately
>
> > introduced an error, the errors also appeared in the Console tab.
>
>
>
> I am betting you didn't invoke the compiler or runtime correctly, K.
>
>
>
> --
>
> Lew
Usage: javaw [-options] class [args...]
(to execute a class)
or javaw [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
[toc] | [prev] | [next] | [standalone]
| From | K <kalezwe@gmail.com> |
|---|---|
| Date | 2012-10-12 19:36 -0700 |
| Message-ID | <6721478c-1d9c-41d5-a015-909fd608dbd3@googlegroups.com> |
| In reply to | #19250 |
this is what appeared at the bottom of the screen in the console tab
Usage: javaw [-options] class [args...]
(to execute a class)
or javaw [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-10-12 22:37 -0700 |
| Message-ID | <ccfce184-6600-4b11-9b66-5b143776f71d@googlegroups.com> |
| In reply to | #19272 |
K wrote: > this is what appeared at the bottom of the screen in the console tab > > Usage: javaw [-options] class [args...] > (to execute a class) > or javaw [-options] -jar jarfile [args...] > (to execute a jar file) > [etc.] and is that how you used it? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | K <kalezwe@gmail.com> |
|---|---|
| Date | 2012-10-13 12:18 -0700 |
| Message-ID | <d951634c-934a-4624-a4ef-9dc1cd15a483@googlegroups.com> |
| In reply to | #19274 |
On Friday, October 12, 2012 10:37:29 PM UTC-7, Lew wrote: > K wrote: > > > this is what appeared at the bottom of the screen in the console tab > > > > > > Usage: javaw [-options] class [args...] > > > (to execute a class) > > > or javaw [-options] -jar jarfile [args...] > > > (to execute a jar file) > > > [etc.] > > > > and is that how you used it? > > > > -- > > Lew what do you mean? Plus where is the java compiler I can't find it
[toc] | [prev] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2012-10-13 12:44 -0700 |
| Message-ID | <k5cgao$6j7$2@dont-email.me> |
| In reply to | #19289 |
On 10/13/2012 12:18 PM, K wrote: > what do you mean? Plus where is the java compiler I can't find it javac (The Java compiler) should be on your path. It should install in one of the Java directories in /Program Files of one stripe or another, if you're on Windows. Take a look there for it.
[toc] | [prev] | [next] | [standalone]
| From | K <kalezwe@gmail.com> |
|---|---|
| Date | 2012-10-13 14:30 -0700 |
| Message-ID | <a21275fd-109a-46c3-b9c2-972f66c9d8a9@googlegroups.com> |
| In reply to | #19294 |
On Saturday, October 13, 2012 12:44:25 PM UTC-7, markspace wrote: > On 10/13/2012 12:18 PM, K wrote: > > > > > what do you mean? Plus where is the java compiler I can't find it > > > > javac (The Java compiler) should be on your path. It should install in > > one of the Java directories in /Program Files of one stripe or another, > > if you're on Windows. > > > > Take a look there for it. I feel really stupid now because I just ran as java application and it worked but thanks for all the help you gave me
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-10-13 13:09 -0700 |
| Message-ID | <b51e847e-65b7-44a8-837b-907b15e15ff5@googlegroups.com> |
| In reply to | #19289 |
K wrote: > what do you mean? Plus where is the java [sic] compiler I can't find it You're asking us? Where did you put it? What Java version are you using? How did you install it? Where did you install it? Do you know how to use a computer to find files on your hard drive? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | K <kalezwe@gmail.com> |
|---|---|
| Date | 2012-10-13 14:31 -0700 |
| Message-ID | <ce1c066c-b5b7-47b4-a7be-321fdb41598f@googlegroups.com> |
| In reply to | #19301 |
On Saturday, October 13, 2012 1:09:42 PM UTC-7, Lew wrote: > K wrote: > > > what do you mean? Plus where is the java [sic] compiler I can't find it > > > > You're asking us? Where did you put it? > > > > What Java version are you using? How did you install it? Where did you > > install it? > > > > Do you know how to use a computer to find files on your hard drive? > > > > -- > > Lew I feel really stupid now because I just ran as java application and it worked but thanks for all the help you gave me
[toc] | [prev] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2012-10-13 08:54 -0700 |
| Message-ID | <k5c2rb$hsh$1@dont-email.me> |
| In reply to | #19272 |
On 10/12/2012 7:36 PM, K wrote: > this is what appeared at the bottom of the screen in the console tab > > Usage: javaw [-options] class [args...] [snip] If this is appear on an Eclipse screen, then something is very wrong. I'd uninstall and reinstall. I'd also check your project type to make certain you created the right type of project, and double check the location of your source file to make sure you didn't put it inside the build script or the META-INF directory or something. The Eclipse forums could probably help you better, I have no deep knowledge of Eclipse that would allow me to debug a problem like this. <http://www.eclipse.org/forums/>
[toc] | [prev] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2012-10-13 09:02 -0700 |
| Message-ID | <k5c3ak$l2c$1@dont-email.me> |
| In reply to | #19282 |
On 10/13/2012 8:54 AM, markspace wrote: > The Eclipse forums could probably help you better, I have no deep > knowledge of Eclipse that would allow me to debug a problem like this. > > <http://www.eclipse.org/forums/> P.S. I assume this is your thread here? <http://www.eclipse.org/forums/index.php/m/740799/> I see they couldn't come up with anything either. If the re-install doesn't do it, I think you should double check the location and type of the JDK. Open a regular Windows command console and type "java -version" and copy the text output. (There's a menu in the upper left corner that allows you to mark an area of the screen for copying, then copy to the clipboard by pressing Enter.) Show us that, your path (output of the PATH command), and then CD to the directory that your JDK is in and do a DIR of the /bin directory too, show us the result of that. I have no idea if this will help, but screwy symptoms call for screwy solutions.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web