In one of my vb.net 2008 application i have called a java class file through batch process which creates txt file and jar file and put in app path folder.

When i run the application it creates only txt file in the app path and not the jar file.

Inside the batch process i have written code as

txtStrm = objFso.CreateTextFile(My.Application.Info.DirectoryPath & "\NEWBATCH.BAT", True, False)
txtStrm.WriteLine("java com.encode " & filename)

in the above code com is folder which will be available in app path of vb.net and encode is java class file whcih creates jar.

Just need to know as why jar is not created. Is there any settings to be done in system for creating jar. Please let me know.


objFso.CreateTextFile used to create text file because name itself create text file.

Use this code

File.Create(My.Application.Info.DirectoryPath & "\NEWBATCH.BAT")