hi
i need to create a batch file when it is double click it should run the code

ehm... what?
not sure what you want exactly, but why don't go for a .jar file?
besides: "it should run the code"... what code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.