File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes \\jboss-4.0.5.GA\bin\run.jar is unexpected at this time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "\\jboss-4.0.5.GA\bin\run.jar is unexpected at this time" Watch "\\jboss-4.0.5.GA\bin\run.jar is unexpected at this time" New topic
Author

\\jboss-4.0.5.GA\bin\run.jar is unexpected at this time

perumal mani
Greenhorn

Joined: May 27, 2008
Posts: 5
Hi All,
In windows 2003(64bit) Operating System, when i install jboss-4.0.5.GA under "C:\Program Files(x86)" i am getting the following error when starting the jboss using run.bat.
"\\jboss-4.0.5.GA\bin\run.jar is unexpected at this time"

when i install jboss in "C:\Program Files", its getting started without any problem. Even if i install in some other directories its working fine. only when i install under "C:\Program Files(x86)", i am getting this problem. Please let me know the solution for this problem. Expecting for replies.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

The solution is simple - don't install in "Program Files(x86)". In fact, I advise against installing *any* Java application within a directory with spaces in the name. Such paths can cause problems in a wide variety of Java libraries.

On my system, I put it at c:\apps.


JBoss In Action
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

I meant to also say that in your case, some Java library is interpreting the "(" or ")" as special characters, and hence messing up the file name.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

And thinking about the problem some more, I think the issue here is with the run.bat script, and its mis-handling of the classpath being passed to java.exe. You could try fixing run.bat, but I would still vote for relocating JBossAS to c:\apps.
rajnish patel
Ranch Hand

Joined: May 23, 2013
Posts: 55
Peter Johnson wrote:The solution is simple - don't install in "Program Files(x86)". In fact, I advise against installing *any* Java application within a directory with spaces in the name. Such paths can cause problems in a wide variety of Java libraries.

On my system, I put it at c:\apps.



Worked for me sir, 10q
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

10q? Please UseRealWords
 
 
subject: \\jboss-4.0.5.GA\bin\run.jar is unexpected at this time