Please Help with creating .jar's
Ok, so I get how to make them, the commands, the manifests, etc.
But for god's sake my DOS doesnt seem to have access to a jar.exe to run. I can type in:
c:\some path> jar cmvf manifest.txt jarname.jar file1 file2
It keeps telling me jar is not a recognized command... i read a part about needing jar.exe in the directory where you're working. Do I have to copy-paste jar.exe into any file I want to make a .jar in? Can I just add jar.exe to windows directory or something to make it a default DOS command?
yeah, i was curious if i could add it to my system32
folder and make it a default dos command, I guess
not... now I have another issue, i have a manifest
file with:
Main-Class: Cyptography
Name: JS/Cryptography
Specification-Title: JCrypto
Specification-Version: .2f
Specification-Vendor: ME
Implementation-Title: JCrypto
Implementation-Version: build3
Implementation-Vendor: ME
Sealed: true
and it loads into the jar fine (I unzipped it and
checked the manifest.mf file in a text editor to make
sure). But when i run java -jar CryptoStudy.jar, it
says:
Exception in thread "main"
java.lang.NoClassDefFoundError: Cyrptography
Now my Cryptography.class file is in the .jar along
with everything else I need. sooo what gives?
Manifest main-class is defined, class is included in
n jar, manifest in the jar is correct... why will it
not run my program? Do I need to package my class
somehow? (if so how?)You misspelt "Cryptography"
Similar Messages
-
Please help with creating more diverse iweb blog entries
I have a blog about sports memorabilia that I use iweb for: http://www.hoopography.com. I have come to a road block in creating blog entries. I have two issues:
1.) I would like to include more than one image for each blog. I tried to just add images and wrap text around when I create the entry in iWeb, but the images do not show up on the homepage where the blog section is located. I'm assuming I need more than one "place holder", but I have not been able to add more than one. Here is an example of another blog that has multiple images for one entry. Essentially, what I am trying to accomplish: http://offysports.blogspot.com/
2.) I would like to add YouTube videos so that they not only appear in the individual entry, but also on the homepage where the blog section is located (Otherwise, visitors to the site need to click on the entry to even realize the image is a video. I would like readers to be able to play it right on the homepage.). I have tried to use the "YouTube Widget" to add the videos when working on the entry in iWeb, but the video appears as a still image on the homepage's blog section.
I have some knowledge of iWeb and Macs. I have been using a Mac and iWeb to work on this blog for about 6 months now, but these 2 problems have stumped and constrained me and the blog. Please help!!!!!! Thanks You.I tuned the Place holder into a YouTube Video Widget, and it does display on the homepage, but it does not display as a video. It displays as a still image that the reader has to click on to access the entry and then play the video in the entry instead of playing right on the homepage.
For the multiple images, are you saying that I can only have one placeholder? I do not follow. I want multiple placeholders for multiple images throughout the single entry (ex: http://offysports.blogspot.com/2010/05/2009-10-panini-studio-basketball.html)
Thanks -
Please help with creating a summary report from data collected in a fillable PDF form.
I'm sure this has been asked before so I apologize in advance - I'm new to this forum and I'm not quite sure of which section I should be in. If I may just describe a certain scenario of something I am trying to create - could you please point me in the right direction?
I'm looking to create a summary report/form to help me better organize my patients after each appointment. So data collected from other fillable forms I've created, will lead to the final page to print that will include selections from fillable text boxes or drop down lists, etc to basically summarize each encounter. It should go something like this:
FORM 1:
-pt chart #
-pg age
-purpose for visit
-date of visit
-diagnosis
-prognosis
-etc
SUMMARY page
On (-date of visit), patient (-pt chart #) arrived with complaint of (-purpose for visit)....
The diagnosis was determined to be (-diagnosis), treatment to be performed is suggested to be (-treatment) with a (-prognosis) prognosis. Treatment was (accepted or not) and completed on... etc. etc... you get the idea
Does anyone know how I can do this?
Thank you all for your time and advice!I have downloaded Castor and got some good tutorials, but.......
There is a problem, when I try to use the Marshaller to get an XML document the following error is reported:
java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
I have scanned the Internet looking for a solution, some recommend including Xecers in the Classpath. I downloaded Xerces 2.7.1 and added it to as instructed but this did not work.
Hope you can help -
Please help with creating QTVR movie
Hi I'm trying to create a QTVR for the first time and I'm using VR Worx.
I intend to make a drawing referring to photos and use the drawing as a single pano image for a QTVR movie.
First I decided to learn the creation process by using this Image:
http://storage.vrantwerp.com/previews/vrijdagmarkt-antwerp-2_preview.jpg
from this page:
http://www.vrantwerp.com/index.php?tag=square
This is the movie created with a higher resolution of that image
http://www.vrantwerp.com/vr/vrijdagmarkt-antwerp-2/full-quicktime.html
When I used the low res image for my test, my movie didn't come as expected. VR Worx distors the image. From this link you can download my file showing the problem
http://savefile.com/files/1368933
I appreciate any help
Thank youI tuned the Place holder into a YouTube Video Widget, and it does display on the homepage, but it does not display as a video. It displays as a still image that the reader has to click on to access the entry and then play the video in the entry instead of playing right on the homepage.
For the multiple images, are you saying that I can only have one placeholder? I do not follow. I want multiple placeholders for multiple images throughout the single entry (ex: http://offysports.blogspot.com/2010/05/2009-10-panini-studio-basketball.html)
Thanks -
Please help with creating a functional form..
Hi world,
I have been able to create a working and functional form using Adobe LiveCycle Designer which others can view and complete as a pdf. I added a button to where it can be emailed to anyone.
My question is: The email that automatically is generated currently says
Form Returned: ProjectInquiryForm test.pdf
The attached file is the filled-out form. Please open it to review the data.
And of course there is a pdf attached. Is there any way to edit this language??
I am a technology novice so if anyone has step by step or easy instructions it would be greatly greatly appreciated!
Thanks so much,
JenniferThank you for your help. I was able to create the form, and add the email button functionality, etc. One last question, The email currently says
Form Returned: ProjectInquiryForm test.pdf
The attached file is the filled-out form. Please open it to review the data.
And then has the pdf attached. Is there any way to edit this language?
Thanks again!
Jennifer -
I am a referee assignor for soccer tournaments. I would like to create a spreadsheet template that I can use that will help me with this. I have a game schedule spreadsheet with the following columns. Date, start time, age group, home team, away team, field #, center referee 1, assistant referee 1 and assistant referee 2. Here is what I would like to do if possible. If a referee has a game at say 10:00am and ends at 11:45am I would like to have a popup menu in the referee columns with referee names where this particular referee name wouldn't show for any games between 10:00am and 11:45. I should mention that for each different age group the game lengths are different. I can also add a end time column in the spreadsheet if I need to.
Is this even possible and if so does anyone have any suggestions on how to accomplish? I should also mention I am not very savvy on creating formulas.
Thanks in advance
RobertThanks. This is what my schedule looks like.
As you can see this particular official is scheduled for 10:00am. That particular age group game is 80 minutes long. I would like for his name to not appear in the dropdown until he is available again. I can create another column with the end time if needed or my thought was to sort the games by age group and enter a formula for each age group. It might sound like a lot of trouble but if there is a way to do it it would help tremendously as some of theses tournament have 300-400 games and it is hard to keep track of each referee and not double book them for the same time slot.
I am not even sure this can be done but trying to have numbers (or excel for that matter) to do the heavy lifting for me. -
Help with creating jar file and running it ?
Hey guys,
I have a program with a package called classes and a sub-package called classes.mainLib.
I am trying to create a JAR file of the class files in mainLib. There is only one class file in classes and that contains the main method. So this is what i am doing:
1. create a manifest file with: Main-Class: classes.Cars
2. from within the mainLib directory (./program_name/classes/mainLib/) i do this:
jar cvf mainLib.jar manifest ./*.class
3. Then i move this jar file to ./program_name/lib and change directory to ./program name/
4. try to do this: java -jar ./lib/mainLib.jar
But it errors with:
gary@linuxbox:~/java/cars$ java -jar ./lib/mainLib.jar
Failed to load Main-Class manifest attribute from
./lib/mainLib.jar
Any ideas why this is happening. the manifest is included in the jar'ing
Thanks.At a glance, it looks like you are placing only the
class files in the jar and trying to navigate your
classpath to run it. Instead, you have to place ALL
the package folders into the jar from the root of
your package hierarchy and the jar runs anywhere, in
any folder. The packages are INSIDE the jar.
also I see cars/classes in a path you describe ...and
the program seems to wnat classes/Cars ??? Could
this be an additional issue (or am I missing seeing
something about your package structure)?Firstly, i believe all my spelling and cases are correct.
I have the following strcuture:
Cars.class (contains main) : package classes in ./classes directory
All other classes : package classes.mainLib in ./classes/mainLib
I would like to jar ALL files in mainLib but not the class that contains the main method. Is this possible?
I'm not sure how clear i was earlier, hope this is more understandable. -
Please help me creating a new listener with different port#.
I have two instances in a server. both have different homes. I want to create a seperate listener for the second one i created.
But that is not happening.
here i tried to give name from LISTENER TO LISTENER1 & Port# from 1521 to 1524.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /apps2/oracle)
(PROGRAM = extproc)
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = aixth53)(PORT = 1524))
When I check lsnrctl status with LISTENER1 , it still shows the other instance home with port#: 1521
Please help me creating a new listener with different port#.
Thanks,marist89 wrote:
sb92075 wrote:
marist89 wrote:
sybrand_b wrote:
The listener is a broker only and doesn't play any role in normal communications.
It just forks a process or a thread, and that's it.And the listener is a single point of failure. Listener goes down, you can't connect to the db. That's why you need two listeners.If listener one goes down, then listener two goes down for exact same reason since it is a single executable file.I'm not playing tit-for-tat with you. Fact is, there are situations where people who are not you might want to use more than one listener.Some folks might want to jab a sharp pencil into their eye, too.
Just because you can do something, it does not necessarily mean it should be done. -
Hey i need help with creating a quiz with scoring and all.
I need a helping hand so if you can get me started that
would help a lot.
Use the Question class to define a Quiz class. A
quiz can be composed of up to 25 questions. Define the add method
of the Quiz class to add a question to a quiz. Define the giveQuiz
method of the Quiz class to present each question in turn to the user,
accept an answer for each one, and keep track of the results. Define
a class called QuizTime with a main method that populates a quiz,
presents it, and prints the final results.
// Question.java Author: Lewis/Loftus/Cocking
// Represents a question (and its answer).
public class Question implements Complexity
private String question, answer;
private int complexityLevel;
// Sets up the question with a default complexity.
public Question (String query, String result)
question = query;
answer = result;
complexityLevel = 1;
// Sets the complexity level for this question.
public void setComplexity (int level)
complexityLevel = level;
// Returns the complexity level for this question.
public int getComplexity()
return complexityLevel;
// Returns the question.
public String getQuestion()
return question;
// Returns the answer to this question.
public String getAnswer()
return answer;
// Returns true if the candidate answer matches the answer.
public boolean answerCorrect (String candidateAnswer)
return answer.equals(candidateAnswer);
// Returns this question (and its answer) as a string.
public String toString()
return question + "\n" + answer;
}Do you know why this lazy fart-ass is back? Because when he posted his homework last week, some sorry-assed idiot went and did it for him.
http://forum.java.sun.com/thread.jspa?threadID=5244564&messageID=10008358#10008358
He didn't even thank the poster.
It's the same problem over and over again. You feed the bears and it only teaches them to come back for handouts.
My polite suggestion to the original poster: please do your own fucking homework. -
[ETL]Could you please help with a problem accessing UML stereotype attributes ?
Hi all,
Could you please help with a problem accessing UML stereotype attributes and their values ?
Here is the description :
-I created a UML model with Papyrus tool and I applied MARTE profile to this UML model.
-Then, I applied <<PaStep>> stereotype to an AcceptEventAction ( which is one of the element that I created in this model ), and set the extOpDemand property of the stereotype to 2.7 with Papyrus.
-Now In the ETL file, I can find the stereotype property of extOpDemand as follows :
s.attribute.selectOne(a|a.name="extOpDemand") , where s is a variable of type Stereotype.
-However I can't access the value 2.7 of the extOpDemand attribute of the <<PaStep>> Stereotype. How do I do that ?
Please help
Thank youHi Dimitris,
Thank you , a minimal example is provided now.
Version of the Epsilon that I am using is : ( Epsilon Core 1.2.0.201408251031 org.eclipse.epsilon.core.feature.feature.group Eclipse.org)
Instructions for reproducing the problem :
1-Run the uml2etl.etl transformation with the supplied launch configuration.
2-Open lqn.model.
There are two folders inside MinimalExample folder, the one which is called MinimalExample has 4 files, model.uml , lqn.model, uml2lqn.etl and MinimalExampleTransformation.launch.
The other folder which is LQN has four files. (.project),LQN.emf,LQN.ecore and untitled.model which is an example model conforming to the LQN metamodel to see how the model looks like.
Thank you
Mana -
Need help with creating a brush
Hi guys,
I wanted to ask for help with creating a brush (even a link to a tutorial will be goon enough ).
I got this sample:
I've created a brush from it, and i'm trying to get this kind of result:
but it's only duplicates it and gives me this result:
Can someone help me please understand what i need to define in order to make the brush behave like a continues brush instead of duplicate it?
Thank you very much
shlomitwhat you need to do is make a brush that looks like the tip of a brush. photoshop has several already but you can make your own that will be better.
get a paintbrush and paint a spot kind of like what you did but dont paint a stroke. make it look kindof grungy. then make your brush from that, making sure to desaturate it and everything.
EDIT:
oh, and if you bring the fill down to like 10-20% your stroke will look better -
Please help with slideshow problems!
Am using Photoshop Elements 8 and trying to make a slideshow. Have tried 4 times now and keep ending up with same problem, cannot reopen project to continue edititing. Won't show up in orginizer and when I find on harddrive and try to open get message " wmv file cannot be opened". How can I save a
slideshow inprogress and be able to reopen and continue to edit and make slideshow? I want to thank anyone who can help me with this in advance as I
have gotten so frustrated that I want to just scream.
ThanksThanks for the help, thought I had done so but maybe not. Anyway will have another go at it, now may I ask another
question? I am trying to add audio to slideshow. I have some music I purchased thru amazon as mp3 files but I get
message no codec and when I try to add wmv I get same message. What type of file do I need and how can I add
multiple songs to one slideshow. I have one little wmv file that will go in, but it just replicates itself multiple times until
it fills slide show.
Thanks again, sorry to be a bother, but this thing is driving this old man crazy.
Date: Sun, 26 Dec 2010 20:34:32 -0700
From: [email protected]
To: [email protected]
Subject: Please help with slideshow problems!
You need to save the slideshow project in order to be able to go back later and make changes or additions to an existing slideshow . The wmv file is a final output format.
Now you are most probably using only the Output command: that is what makes the wmv file.
You should also do the Save Project command. (and I make it a practice to do the Save Project command before I do the Output command).
If you look at the Elements Organizer 8 Help, there is a topic on "Create a slide show".
-- Very close to the beginning of that topic is a screen shot of the Sldie Show Editor screen,
-- The bar below the usual menu bar is labeled with a "B" and called the Shortcuts bar.
-- The 1st entry on that Shortcuts bar is "Save Project"
It is the Save Project command that saves the information about which photos, audio, etc you placed in that specific slide show so that you can come back again to do subsequent editing. Save each Project with a unique name.
After completing the Save Project command, you shoud see an "icon" in the Organizer for that slide show.
Note: you must also keep the photo files and audio files which you have used in this slide show: you can't delete them because the project file does NOT contain a copy of the photos, it only has the identification and folder location of the photo and audio files.
> -
I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. I have no problem sending the text messages but I'm not receivng any from iPhones at all. It has been about a week now that I'm having this problem. I've already tried fixing it myself and I also went into the sprint store, they tried everything as well. My last option was to contact Apple directly. Please help with turning my iMessage completely off so that I can receive my texts.
If you registered your iPhone with Apple using a support profile, try going to https://supportprofile.apple.com/MySupportProfile.do and unregistering it. Also, try changing the password associated with the Apple ID that you were using for iMessage.
-
How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore.
On the new computer, I am getting a message that my all purchases would be deleted if I sync it with new iTunes library.
Please help with proper steps, if any.Also see... these 2 Links...
Recovering your iTunes library from your iPod or iOS device
https://discussions.apple.com/docs/DOC-3991
Syncing to a New Computer...
https://discussions.apple.com/docs/DOC-3141 -
I need help with Creating Key Pairs
Hello,
I need help with Creating Key Pairs, I generate key pais with aba provider, but the keys generated are not base 64.
the class is :
import java.io.*;
import java.math.BigInteger;
import java.security.*;
import java.security.spec.*;
import java.security.interfaces.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import au.net.aba.crypto.provider.ABAProvider;
class CreateKeyPairs {
private static KeyPair keyPair;
private static KeyPairGenerator pairGenerator;
private static PrivateKey privateKey;
private static PublicKey publicKey;
public static void main(String[] args) throws Exception {
if (args.length != 2) {
System.out.println("Usage: java CreateKeyParis public_key_file_name privete_key_file_name");
return;
createKeys();
saveKey(args[0],publicKey);
saveKey(args[1],privateKey);
private static void createKeys() throws Exception {
Security.addProvider(new ABAProvider());
pairGenerator = KeyPairGenerator.getInstance("RSA","ABA");
pairGenerator.initialize(1024, new SecureRandom());
keyPair = pairGenerator.generateKeyPair();
privateKey = keyPair.getPrivate();
publicKey = keyPair.getPublic();
private synchronized static void saveKey(String filename,PrivateKey key) throws Exception {
ObjectOutputStream out= new ObjectOutputStream(new FileOutputStream(filename));
out.writeObject(key);
out.close();
private synchronized static void saveKey(String filename,PublicKey key) throws Exception {
ObjectOutputStream out= new ObjectOutputStream( new FileOutputStream(filename));
out.writeObject(key);
out.close();
the public key is:
�� sr com.sun.rsajca.JSA_RSAPublicKeyrC��� xr com.sun.rsajca.JS_PublicKey~5< ~��% L thePublicKeyt Lcom/sun/rsasign/p;xpsr com.sun.rsasign.anm����9�[ [ at [B[ bq ~ xr com.sun.rsasign.p��(!g�� L at Ljava/lang/String;[ bt [Ljava/lang/String;xr com.sun.rsasign.c�"dyU�| xpt Javaur [Ljava.lang.String;��V��{G xp q ~ ur [B���T� xp ��ccR}o���[!#I����lo������
����^"`8�|���Z>������&
d ����"B��
^5���a����jw9�����D���D�)�*3/h��7�|��I�d�$�4f�8_�|���yuq ~
How i can generated the key pairs in base 64 or binary????
Thanxs for help me
Luis Navarro Nu�ez
Santiago.
Chile.
South America.I don't use ABA but BouncyCastle
this could help you :
try
java.security.Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
java.security.KeyPairGenerator kg = java.security.KeyPairGenerator.getInstance("RSA","BC");
java.security.KeyPair kp = kg.generateKeyPair();
java.security.Key pub = kp.getPublic();
java.security.Key pri = kp.getPrivate();
System.out.println("pub: " + pub);
System.out.println("pri: " + pri);
byte[] pub_e = pub.getEncoded();
byte[] pri_e = pri.getEncoded();
java.io.PrintWriter o;
java.io.DataInputStream i;
java.io.File f;
o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pub64"));
o.println(new sun.misc.BASE64Encoder().encode(pub_e));
o.close();
o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pri64"));
o.println(new sun.misc.BASE64Encoder().encode(pri_e));
o.close();
java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader("d:/pub64"));
StringBuffer keyBase64 = new StringBuffer();
String line = br.readLine ();
while(line != null)
keyBase64.append (line);
line = br.readLine ();
byte [] pubBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
br = new java.io.BufferedReader(new java.io.FileReader("d:/pri64"));
keyBase64 = new StringBuffer();
line = br.readLine ();
while(line != null)
keyBase64.append (line);
line = br.readLine ();
byte [] priBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
java.security.KeyFactory kf = java.security.KeyFactory.getInstance("RSA","BC");
java.security.Key pubKey = kf.generatePublic(new java.security.spec.X509EncodedKeySpec(pubBytes));
System.out.println("pub: " + pubKey);
java.security.Key priKey = kf.generatePrivate(new java.security.spec.PKCS8EncodedKeySpec(priBytes));
System.out.println("pri: " + priKey);
catch(Exception e)
e.printStackTrace ();
}
Maybe you are looking for
-
Item group field in A/p Invoice jounal Report
Hi, in Financial Reports -> Accounting-> Transaction Journal-> A/P invoice. in this report along with Vendor Details & Tax %, Respective Item Group also should display. for this what to do. if i drag any group name from the list, it is repeating. how
-
Basically, how do I interact with MS users for Word? Best to use textedit rather than pages?
-
Will there be a macbool pro with matte display ?
will there be a macbool pro with matte display ? if not - how to change the exisiting display to a matte display ... ? thx hl
-
IS it Possiblity of BDC in Module pool programming
Hi All, i have design 2 screens with module pool program.in one screen some input fields are there,once enter input and press buttoon,it will go to 2nd screen in this data is displayed in table control .once selected some rows in tabl
-
Hi In the Current DW we defined the values for the following time dimensions to facilitate scheduling reports. For instance, the filter on the query would be: if PERIOD between u2018Period 3 Months Prioru2019 and u2018Last Month Periodu2019 then Sal