General :: Convert Java Class Into Jar Archive In (Redhat)?

Jun 7, 2011

I need to know that how to convert a java class file into java archive (jar)

View 1 Replies


ADVERTISEMENT

Programming :: How To Set Up Global Class In JAVA?

May 10, 2011

I've had to do some code in java, a language I'm very much unfamiliarly with so please excuse my incorrect use of terms. The basic outline of my problem is I create a class object as a local within a swing button function it works fine. If I create it as a global ( with I think I need to do ) within main, then prototype it with the other swing objects at the bottom of the file when it is called it causes a host of problems. I think the easiest way is to show it.

View 2 Replies View Related

Programming :: Md5 In Java Without Using MessageDigest Class

Sep 18, 2010

I am looking to write a function to return an MD5 hash in Java but I don't want to us the MessageDigest class as I am using the J2ME framework which doesn't include it.

View 3 Replies View Related

Fedora :: Error Calling Another Java Class

Feb 4, 2011

I have a simple code like below. when I run this command javac callSMSClient.java I get this erros. Any solution to this please?

View 13 Replies View Related

Ubuntu :: Cannot Execute Java Class File In 9.10

Mar 20, 2010

I installed jdk1.6.0_18 version. Please see below for the version.

[Code].....

View 1 Replies View Related

Software :: Set Class Path For Java In Ubuntu 9.10

May 24, 2010

I recently installed java in ubuntu (ver#java1.6.0.00)with many pains.Now I need a clear class path for this java in ubuntu 9.10.

View 2 Replies View Related

General :: Tool To Convert My Whole Java Code To C / C++?

Aug 6, 2010

As a part of my project I have to write the code from scratch in c/c++ but I already have a full blown Java code available with me. Is there any tool that can do the same.

View 10 Replies View Related

Debian :: Java Error - Class Applet GUI Not Found

Mar 7, 2010

I have Debian Testing, Kernel 2.6.32-trunk-686 and Java version:
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)

If I open web page with Java application (in Opera, Iceweasel and Google Chrome), for example this page: [URL] I get error message (image in attachment). If I click in the Details, I get this text:
Java Plug-in 1.6.0_16
Using JRE version 1.6.0_16-b01 Java HotSpot(TM) Server VM
User home directory = /home/johnnycage
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>

load: class AppletGui not found.
java.lang.ClassNotFoundException: AppletGui .....
Exception: java.lang.ClassNotFoundException: AppletGui

View 4 Replies View Related

Debian Programming :: Java Can't Find Main Class

May 18, 2010

This is a bit of revision for the OU course M257

Code: Select all import java.util.*;
public class FindDupes {
public static void main(String[] args) {
   Set<String> orig = new HashSet<String>();
   Set<String> dupe = new HashSet<String>();
   for(String a: args)
   if(!orig.add(a))
      dupe.add(a);

   orig.removeAll(dupe);
   System.out.println("words " + orig);
   System.out.println("dudes " + dupe);
}
}

for some reason it will compile but not run on debian lenny complains it can't find the main class but it compiles and runs without problem on Fedora 12.

View 6 Replies View Related

Ubuntu Security :: Malware-gen In Class Files With Latest Java?

Apr 4, 2011

I browse with Firefox and I had been running a pretty vanilla install of Ubuntu 10.4 (with a few things like tomcat and mysql) I supposed the repos kept everything (like java) up to date.

Some time ago I replaced OpenJDK with SunJDK.
java -version is "1.6.0_24"
which java is /usr/bin/java

Yesterday, for the first time, I downloaded and ran an Avast! scan. It complains of "Malware-gen" in several class files in what I think is the java cache. Does anyone know how this could be?

View 2 Replies View Related

Software :: Set Mail.jar - JavaMail - And Mysql-connector-java.jar In Class Path

Jan 18, 2010

I want to ask how i set Linux class path for mail.jar and mysql-connector.jar. I have set the class path for java with the command.

Code:

when i do java -version it's work fine.

Also if i want to know that what shell i am using how can i find it.Also what is the command for showing class path variables or how can i see my JAVA_HOME class path.Means after setting the class path for above two files how can i see that these files have added.

When i write echo $CLASSPATH or echo $JAVA_HOME it shows nothing no error but again shows the prompt.

One thing more i want to run a java program on Linux it is in a package (named asteriskproject). It consist of 10 java files. I have run this program on windows using netbeans IDE.For this program i need to set my Linux class path for the above mentioned files, and this is my first time that i am running any program on Linux. So i want to ask how can i run my program. Simply put this asteriskproject directory in any folder and run the main file using javac. Is it right way to run the program that consist of package ?

View 3 Replies View Related

Programming :: Replacing The File In .Jar - Java.lang.NoClassDefFoundError Exception At Main Class

Jul 21, 2010

working on a script to update .Jar file, I have tried jar xf to unpack and jar cf to repack it is giving me java.lang.NoClassDefFoundError exception at main class. I also tried jar uf, which is also not working for me Basically my jar file requires to update date, which i do from "winrar" Manual it works fine, but now to remove "Donkey work", i want to make an script which does this all automatically, and the last stage is to update jar file which is not happening.

View 1 Replies View Related

Red Hat / Fedora :: Program To Convert .deb To .rpm Run On Redhat System?

Nov 4, 2010

I need a program to convert .deb to .rpm run on redhat linux.
How can I do?

View 3 Replies View Related

OpenSUSE Install :: Cannot Compile Vdrift-2009-06-15 - Warning: The Options Class Is Deprecated; Use The Variables Class Instead

Mar 12, 2010

I have a problem with compiling vdrift-2009-06-15 using scons. As the source that i obtained only supports scons i cannot use make. the error that i get when i try to compile it in GNOME Terminal is: scons: Reading SConscript files ... scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/mohit/Download/vdrift-2009-06-15/SConstruct", line 9, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/mohit/Download/vdrift-2009-06-15/SConstruct", line 13, in <module>
Checking for C++ header file asio.hpp... (cached) yes
Checking for C++ header file boost/bind.hpp... (cached) yes
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
[Code]........

View 4 Replies View Related

General :: Get Error "does Not Look Like A Tar Archive" When Attempt To Verify An Archive Using Tar?

Jul 13, 2011

I am new to the world of linux and when attempting to verify a tar archive I am displayed the following error. When running the command tar cvfW archivename.tar filename directoryname does not yield any errors.

View 1 Replies View Related

Ubuntu :: Zip File Gvfsd-archive / Archive Mounter Read Write Mode

Dec 6, 2010

I'd like to ask about archive mounter feature, can I mount zip file with read write mode? can gvfsd-archive do that?, or I must use fuse-zip to mount it? If I must use fuse-zip, how I wrap it so I can use it via nautilus or via gvfs-fuse-daemon

View 4 Replies View Related

General :: Cant Mount Redhat 5.0 From Redhat 4.0 Via Fstab?

May 5, 2011

I cant mount a directory on red hat 5 from red hat 4 using fstab.I keep getting permission denied.I mount directories on the same red hat 5 sys from other red hat 5 and 2 old HPUX systems using fstab.When I try to telnet to it i get "no route to host."

View 3 Replies View Related

General :: Command To Check The Java Version: Java -versionand Got :bash :java: Command Not Found?

Jul 26, 2010

I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found

View 4 Replies View Related

General :: Using Convert From Imagemagick Package To Convert Multiple Jpg Files?

Jul 18, 2010

I'm trying to use convert, I have installed the imagemagick. I use this line:convert *.jpg test.pdf but I'm only able to convert to pdf 1 single jpg file, not multiple files at once. When there's more than one file, I get the following error: Segmentation fault

View 5 Replies View Related

General :: Enter The Command Java -version It Shows Java Is Not Found?

Jan 19, 2010

Java is installed in linux machine and when I enter the command java -version it shows java is not found.At the same time when i run from the folder where its installed with ./java -version it works.

first of all why its not working from any other place? also why do I need to give ./ from the folder?

View 3 Replies View Related

General :: Java JRE Installed So End-users Don't Have To Install It To Run Java Applications?

Jan 29, 2010

Do Windows XP, Vista, Windows 7 and all Linux distributions have Java JRE installed so end-users don't have to install it to run Java applications?

View 4 Replies View Related

Programming :: Convert RTF Files To MS Word Files Using Java?

Sep 19, 2010

In my application I came across a new requirement where I have to convert RTF files to Word and PDF formatted files. I am searching for an API using which my java application can able to convert the above specified formats.

View 4 Replies View Related

General :: Class Getting Humility Lesson

Mar 2, 2011

I'm in Linux class getting a humility lesson as I type this.

View 2 Replies View Related

General :: Compile C++ Class In System?

May 25, 2010

I am new in c++ progreming .
i have written lot of classes and main class of c++ in one file and compile successfully but now i have written all classes in different and main class in different file like this.code...

now how to compile and run these classes

View 1 Replies View Related

General :: Sys/class/net/ethx/type - What Is It?

May 3, 2011

To get info of all etherhet adapters I am using C as well as info from various files in /sys/class/net/ethx directory.

There is a file name 'type' and has a number in it. Is it physical medium type of ethernet adapter? If yes, then how do I get string representation of that number? If no, then How do I determine physical medium type of ethernet adapter. For example 802.3, 802.5 etc.

View 1 Replies View Related

General :: Smtp Class In Chrooted Directory

Jul 29, 2010

I am unable to send emails throught smtp class with auth server. Whenever i send the email even throught mybb smtp class in forum i see blank page and apache logs shows: Code: [Thu Jul 29 16:41:49 2010] [notice] child pid 23716 exit signal Segmentation fault (11) any idea what i have to add for proper work of this?

View 1 Replies View Related

General :: /sys/class/net/ Is This Is The Correct Place For Eth Info

Apr 12, 2011

Using a python script, I am gathering various info about all the ethernet adapters installed. For this I am parsing all the directories(each directory represent a ethernet adapter) inside"/sys/class/net/" directory.Is this is the correct place and de-facto standard for listing ethernet adapters?I am concerned about modern distros as well as a bit older ones for the presence of this directory.

View 1 Replies View Related

Ubuntu :: Downloading Programs - The "Archive Manager" Comes Up And Says "An Error Has Occured While Loading The Archive"?

Jan 10, 2010

I'm new to Ubuntu, and everytime i've tried to download a program like iTunes, the "Archive Manager" comes up and says "An Error Has Occured While Loading the Archive". how to fix this or download programs ?

View 7 Replies View Related

General :: Dual Boot Class Project Failed

Mar 19, 2010

Our A+ project was to set up a dual-boot using XP Pro & the Linux download of our choice. What we did:

1- We formatted a 38GB HD using the NTFS file system.
2- Two equal sized NTFS partitions were created.
- Partition 1 was a Primary.
- Partition 2 was an Extended.
3- Used Ubuntu CD.
4- Install Ubuntu choices were to format the HD, install side-by-side, use the the longest continuous space, etc. We chose side-by-side.
5- After the install there was no evidence of the 2d 18GB partition (which we planned to use for XP Pro).

When we booted to the XP install disc that program booted to another HD (C.

View 2 Replies View Related

General :: Find The Scope / Definitions Of A Class / Methods?

Feb 13, 2010

In Windows environment when I used Borlan for C/C++ compilation, I was used to find the the scope/definitions of the methods/classes by pressing

Code:
ctrl + F1

when the cursor was hovering on that method/class. How can I find the scopes/definitions in the GNU/Linux?

Code:
//atoi.cc
#include <iostream>
main(int argc, char* argv[]) {
float var_float = atof(argv[0]);

[Code]....

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved