I have a application using swing, which contains some module that do not belong to java( c and unix shell), I have to change this application to java, and the cost should not too large. So can I first change the application to web, and then deploy it using a web container? If it can't, can I change it to applet ( the client using windows)
It would be very difficult to port your Swing application to a web app, not because of any non-native code or JNI issues, but because your entire Swing layer would need to be jettisoned in favor of a new UI implemented using HTML pages.
Was the app written using a strict MVC pattern that would allow your model to work using a completely different presentation layer?
If not, you are looking at a re-write. if so, you are at least looking at implementing a new UI.
It might be a lot easier to go the Applet route, but I really don't know what would be involved there since I've never even seen the code for one, let alone written one.