Don't lose heart - you're on the right track, my stating *.java was a little misleading as cpistrip is compiled out this one file, Main.java. The difference is, you've compiled it to a class file rather than the JAR file I've been talking about. The purpose of a JAR is to group together related class files of larger programs, but since we've only got one class file theres no problem to keep it that way. You can use this format, instead, to execute your compiled code:
- Code: Select all
java Main < input.m2ts > output.m2ts
Yes, it was my mistake on the naming of .m2ts, it should be like this. Also note that there is no need to write .class after Main, and that you mustn't rename this Main.class file or java will get upset.
