File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Error executing file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error executing file." Watch "Error executing file." New topic
Author

Error executing file.

Shhailesh Joshi
Greenhorn

Joined: May 04, 2012
Posts: 26
I compiled this code to .jar file and converted it to .exe using exe4j sofware.but as soon as i give inputs and press enter it wont display the results.please suggest what to do? and yes the code is free of errors.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Are you crazy? Deleting hal.dll (if it succeeds, I hope Windows prevents you from doing that) will seriously mess up your Windows installation. It's needed to make any piece of hardware to work - it's the Hardware Abstraction Layer main DLL. Why would you want to delete that?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Shhailesh Joshi
Greenhorn

Joined: May 04, 2012
Posts: 26
no.its not preventing me from deleting that hal.dll and it wont delete as it will deleted only if 'that' mentioned file is missing.i just wrote it for timepass.
Shhailesh Joshi
Greenhorn

Joined: May 04, 2012
Posts: 26
and 'that' file is present in my pen drive.i just wanted that no one can access my pc(the code here is incomlete).i am beginner and just for timepass i used to do such things.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

So if someone starts your PC without your pen drive then he will cripple your own Windows installation?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18825
    
  40

Rob Spoor wrote:So if someone starts your PC without your pen drive then he will cripple your own Windows installation?


Or if another coderanch user tries to help the OP debug the code in this topic???

regardless, I deleted the offending line of code -- don't want JR or the OP getting sued to distributing damaging code here.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Shhailesh Joshi
Greenhorn

Joined: May 04, 2012
Posts: 26
ok...thank you all for your response, and sorry for sharing such things publicly at javaranch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error executing file.