Tag Info

Hot answers tagged

11

I'm not certain what you mean by "manual file deleting", but here's how to delete the META-INF folder. You must open minecraft.jar in a program which can edit .zip files (such as 7-zip), then delete the META-INF folder as you would anything else. This should not require administrator privileges, as minecraft.jar resides inside your home folder, over which ...


4

Your problem is how you use the start command. By putting the first parameter into "" you assign that as the title of the window for the started program. Then you pass %1 into it (which you noted in the comments of your question). %1 is the filename of the .myext file you clicked. So that is the file start tries to execute. Which results in the error ...


4

I tried exporting HKEY_CLASSES_ROOT\.zip, changing all references of '.zip' to '.jar' and importing it to HKEY_CLASSES_ROOT\.jar. Under Vista at least it let me open a .jar file as if it were a .zip.


4

By default, Windows 7 doesn't think .jar is a zip file that it can open, so doesn't enumerate its contents. You can fix this with the following registry addition: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.jar\PersistentHandler] @="{3B224B11-9363-407e-850F-C9E1FFACD8FB}" Either paste that into a text file and save as fix.reg, then open it ...


3

One possibility is MicroEmulator : This is Java 2 Micro Edition (J2ME) CLDC/MIDP Emulator. Allows demonstrate MIDlet based applications in web browser applet, also can be run as standalone java application. MicroEmulator is a pure Java implementation of Java ME in Java SE. MicroEmulator is licensed under LGPL so it is possible to link ...


3

To make it easy for others to run the JAR installer without having to make changes to all their computers, you'll probably want to wrap it with a batch script that elevates and runs the JAR file. You can do this easily with the Elevation PowerToys from Microsoft. They include a useful utility that lets you launch anything as administrator by simply ...


3

What you need to do is associate the JAR extension in Windows Explorer with Compressed folders. From Windows Explorer select tools / Folder Options. Then the Files Types tab. Select New and associate JAR Compressed (ZIP) Folder.


3

In two steps: Open Explorer, right-click an .rcq file and choose Open, then Select from list, choose java.exe and click OK after checking "Always use the selected program". Still in Explorer, open Tools -> Folder options, File types tab, click on .rcq in the list, then Advanced. Click on Open, then Edit, and add the additional parameters to the displayed ...


3

zip -u stuff.jar file.txt will update file.txt in stuff.zip . Note that for -u file.txt must already exist in the zip file, and will only be overwritten if it's newer than the one in the jar.


3

what about this one jar -uf YOURJAR.jar FILE if the jar have a folder structure, you can keep that too jar -uf YOURJAR.jar DIR/DIR/FILE Look this one for more information http://docs.oracle.com/javase/tutorial/deployment/jar/update.html


3

However after selecting a file (eg. AbstractComponent.class) and press Enter, within vim I get: caution: filename not matched This is probably a known bug in vim's ZIP plugin - the plugin does not properly handle ZIP files that contain ZIP comments. See e.g. this mailing list post As a side note, I also noticed that if I extract the jar ...


3

In addition to Ben Blank's answer, if you cannot install a zip application as you do not have administrator rights, you could just rename mincraft.jar. As a .jar file is just a .zip file under another name, and if you are using Windows, which can now open .zip files as if they were directories, you can just rename minecraft.jar to minecraft.zip. You can now ...


3

Do you know the name of the file in the archive before unzipping it? You could make a function to unzip to /tmp, edit, and refresh the zip: zipedit(){ echo "Usage: zipedit archive.zip file.txt" unzip "$1" "$2" -d /tmp vi /tmp/$2 && zip -j --update "$1" "/tmp/$2" } As it says, usage is: zipedit myarchive.zip myfile.txt This ...


2

Vim supports transparently editing files inside zip files. Just execute: vim file.zip and you will be shown a list of files inside zip archive. Choose the one you want to edit, change what you want, and exit with :x


2

What you are looking for is a J2ME emulator, there are many of them and it appears that many have some limitations such as limited 3D support, slowness and other bugs. There is Micro Emulator which according to this site can run Opera Mini and is an indication that it is reasonably complete. I also found Java Emulator which looks to be more game ...


2

Schedule java.exe or javaw.exe instead, with the following command-line arguments: javaw -jar myfile.jar (On Windows, java is for console-based programs while javaw is for graphical ones.)


2

One good reason is that if you remove something from a jar, you risk breaking dependencies of other classes in the jar. But, I agree that this is babying a user who may know what can safely be removed. You can work around this easily enough by renaming the jar to a .zip file and manipulating it with your favorite .zip editor (Windows File Explorer will do ...


2

Problem You have your command set to this: @="C:\\...\\run.exe %1" Spaces are delimiters and used to separate different parts of a command and its arguments. If you had no spaces in the filenames, then it would work: C:\Foobar\run.exe c:\test.myext If have spaces in the file (or its path) being passed, the program may or may work correctly depending ...


2

Tools | Options | File Associations | Look for JAR | Advanced Options | Edit the "open" action and use: "C:\Archivos de programa\Java\jre6\bin\javaw.exe" -jar "%1" %* well "C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %* by example, it depends on your JRE location


2

jar or exe are just containers and may contain anything, so yes, you should be careful ... I wouldn't say that it's impossible to remove afterwards, but if you don't trust the publisher run some tests before you touch it ...


2

If someone really wanted to do something like this, they could theoretically use the exe to install and start multiple services, all of which check for the existence of all the rest in an endless loop while performing whatever maliciousness they desire. If any of the others are stopped or removed, the remaining would repopulate the one that was missing. ...


1

The other files in /usr/bin most certainly are no java applications. Your jar is not an executable file on its own, it needs to be opened and executed by the java executable. Double clicking it will do the magic (of executing java -jar your.jar) in the background. IMHO your jar doesn't belong to /usr/bin. /opt/yourapp would be wiser. See this question ...


1

The "standard" unix location for local packages (things that are specific to one computer, and not a whole network installation) is /usr/local Many Linux distributions choose to break this standard and just dump everything in /usr, or (heaven forbid) /opt! (don't you just hate it when some application decides to fill up your root partition because it's ...


1

p7zip couldn't open it for me even after renaming it to zip (said "unknown suffix"). My system's default archive manager is file-roller, it opened the .jar witout any problems an I could delete the folder. unzip could also handle it, but you need to recompress manually after.


1

To extract FILE.class directly to current directory: 7z.exe e test.jar com\app\test\FILE.class To extract file to com\app\text\FILE.class in current directory (folders will be created if they don't exist): 7z.exe x test.jar com\app\test\FILE.class


1

Instructions for configuring the file assocations you'll need can be found here:   jar : Java Glossary - Making Jar Files Double Clickable   http://mindprod.com/jgloss/jar.html#ASSOCIATION


1

I have WIndows 7 also. Browse to C:\Program Files\Alliance. Right click on Alliance.exe and select 'Run as administrator'. You'll notice that a file alliance.tmp is now created in the C:\Program Files\Alliance directory and the program will actually load and run like the screenshots on their website.


1

I had the same problem and finally solved it, download the jdk1.5 upgrade 3. I had the exact same problem, even after reinstall, I was getting the main class not found error. After installing jdk1.5 upgrade 3. Problem solved!


1

A slightly roundabout way would be to download this Batch to EXE converter, use it to convert anzenketh's batch file to an exe with the setting Invisible Application, and including the jar file. This way you could directly tell task scheduler to run the resulting exe, and you would only have one exe to keep track of instead of the jar and the bat.



Only top voted, non community-wiki answers of a minimum length are eligible