I have to read the co-ordinates of a 3D object from the txt file and store it in an array. But I need to store it in a JAR file so that I can view the final product in my visualizer (Jmol). How do I get about in doing that?

Sorry I meant, after storing the co-ordinates in the array, I need it to undergo some processes such as rotation & translation and finally, the final product would be a JAR file.

There are classes for writing jar files. See JarOutputStream for example.
Try google for sample code.

Be a part of the DaniWeb community

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