Results 1 to 9 of 9
  1. #1
    egbert95 is offline Member
    Join Date
    Jul 2010
    Posts
    9
    Rep Power
    0

    Exclamation .BAT File problem

    Hi, When i try to start up a a .bat file, in this case with the code:

    @echo off
    title WE NEED TO BE #1 AGAIN SO PLEASE VOTE!
    javaw -Xmx300m Jframe 10 0 highmem members 32
    pause

    it just says: Press any key to continue.
    Now, I dont know what the problem is.
    I dont even know if it had something to do with java.

    Please help me?
    I will answer as soon as i can.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,611
    Rep Power
    25

    Default

    try using the java command instead to see if you get a different error message.

    Copy and paste the contents of the command prompt window here.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

  3. #3
    cselic is offline Senior Member
    Join Date
    Apr 2010
    Location
    Belgrade, Serbia
    Posts
    278
    Rep Power
    5

    Default

    Purpose of using files with extension bat is to write in that file what you want to write for example in your command line manually over and over again.

    Java Code:
    @echo off
    title WE NEED TO BE #1 AGAIN SO PLEASE VOTE!
    javaw -Xmx300m Jframe 10 0 highmem members 32
    pause
    Are those commands are proper commands in your command line?

  4. #4
    egbert95 is offline Member
    Join Date
    Jul 2010
    Posts
    9
    Rep Power
    0

    Exclamation

    Ok when i copy it says: Druk op een toets om door te gaan. . .
    which in english means: Press any key to continue...

    when i replace javaw with java, i get same message

    Quote Originally Posted by cselic View Post
    Are those commands are proper commands in your command line?
    Yes, they are.

    any more suggestions?

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,611
    Rep Power
    25

    Default

    Can you post the contents of the screen here?

  6. #6
    cselic is offline Senior Member
    Join Date
    Apr 2010
    Location
    Belgrade, Serbia
    Posts
    278
    Rep Power
    5

    Default

    Java Code:
    javaw -Xmx300m Jframe 10 0 highmem members 32
    I think that that things are arguments of command line. Do you have that program. If you have please check in main function does it have same arguments, and correct arguments.

    public static void main (String[] args)

  7. #7
    egbert95 is offline Member
    Join Date
    Jul 2010
    Posts
    9
    Rep Power
    0

    Default

    Norm, I dont actually now what you mean,

    and it might help if i add that like two days ago, it started up normally.

    and i understand cselic even less. :O

    but can it be that its not my computer, but that the server is offline? (It's like a private server for runescape)

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,611
    Rep Power
    25

    Default

    Are you changing subjects now?
    You posted a problem with executing a batch file.
    Now you talk about a server.

    What does a server have to do with the batch file not working?

    Please start over and completely explain the problem. Include the contents of the command prompt screen when you run the batch file.
    Open a command prompt screen, change folders to the folder with the batch file and enter the name of the batch file so it will display as it executes on the screen.

  9. #9
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Try do this:

    Java Code:
    title WE NEED TO BE #1 AGAIN SO PLEASE VOTE!
    javaw -Xmx300m Jframe 10 0 highmem members 32
    pause

Similar Threads

  1. jar file problem
    By abhijit in forum New To Java
    Replies: 12
    Last Post: 02-12-2010, 10:06 AM
  2. Jar File Problem
    By Moncleared in forum New To Java
    Replies: 10
    Last Post: 10-18-2009, 08:43 AM
  3. jar file problem
    By nishant.4545 in forum New To Java
    Replies: 1
    Last Post: 07-03-2009, 09:36 PM
  4. problem - using a jar file
    By jon80 in forum New To Java
    Replies: 6
    Last Post: 07-07-2008, 08:49 AM
  5. problem with jar file pls help
    By jinu5 in forum New To Java
    Replies: 0
    Last Post: 08-15-2007, 11:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •