| Changing contents of signed Jar ? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- How to print??Hello
i have a small problem. i do not know how to print txt file in java?? i do
want to do it through GraphicsComponent(drawString). Can somebody help me??
thanks Lukasz
- 1
- RMI Objects HelpHi,
I'm having a little problem with compiling the RMI Stub. Getting the
following error. Have attached all relevant source code below. Hope
someone can help!
Thanks,
Rajat
ERROR
======
D:\Projects\TreeServer\TreeServer_Stub.java:6: class
TreeServer.TreeServer_Stub must be declared abstract. It does not
define java.lang.Object getChild(char, TreeServer.Nodes, short,
java.lang.String) from interface TreeInterface.TreeInterface.
public final class TreeServer_Stub
===========
TreeServer.java
===========
package TreeServer;
import java.rmi.Naming;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import TreeInterface.*;
public class TreeServer extends UnicastRemoteObject implements
TreeInterface {
static final long serialVersionUID = 10000;
NodeManagement nm = new NodeManagement();
public static void main(String[] args) {
try {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
TreeServer q = new TreeServer();
Naming.rebind("rmi://localhost/TreeService", q); // sets the
// handle
System.out.println("Start Main RMI Server");
} catch (RemoteException er) {
System.out.println("Exception in Main RMI Server: " + er);
} catch (Exception err) {
System.out.println("Exception occurred: " + err);
}
}
public TreeServer() throws RemoteException {
// do the init here.
super();
}
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary)
throws RemoteException {
return nm.getChild(c, nod, difficulty, dictionary);
}
}
=============
Nodes.java
=============
package TreeServer;
public class Nodes{
public char letter;
public int first_Child_offset = 1000;
public boolean isTerminal = true;
public boolean isLastSibling = true;
public int NodeNo;
public Nodes() {
}
public Nodes(int NodeNo, char letter, boolean isTerminal,
int first_Child_offset, boolean isLastSibling) {
this.NodeNo = NodeNo;
this.letter = letter;
this.isLastSibling = isLastSibling;
this.first_Child_offset = first_Child_offset;
this.isLastSibling = isLastSibling;
this.isTerminal = isTerminal;
}
}
=================
NodeManagement.java
=================
package TreeServer;
import java.io.*;
import java.util.*;
public class NodeManagement {
public NodeManagement() {
}
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary) {
/// this returns a node object. code is just too big to paste here.
}
}
=============
TreeInterface.java
=============
package TreeInterface;
import java.rmi.*;
import TreeServer.*;
public interface TreeInterface extends java.rmi.Remote {
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary)
throws RemoteException;
}
============
TreeClient.java
============
package TreeClient;
import java.rmi.*;
import TreeInterface.*;
import TreeServer.Nodes;
public class TreeClient {
TreeInterface rq;
public TreeClient() {
try {
rq = (TreeInterface) Naming.lookup("rmi://localhost/TreeService");
} catch (Exception e) {
e.printStackTrace();
}
}
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary) {
try {
return rq.getChild(c, nod, difficulty, dictionary);
} catch (Exception e) {
return (new Nodes());
}
}
}
- 1
- Using JNI in a ServletDoes anyone have experience with using JNI in a servlet under Windows
XP? When trying to do this, it continually fails to load the C
library.
It works when done in a normal Java program, but not when it's a
servlet.
I've seen that others have used JNI in Servlets and had this problem
with Windows, but no explanation on how to work around the problem.
I also have problems running javah. It's not required, but it does
work
as a precursor; if javah doesn't work, the library won't load either.
Here's a quick rundown of the setup and errors. I'ms using Java 1.5
with the Sun App Server on a Windows XP SP2 system, compiling the C
code
with gcc v3.3.3. CLASSPATH is set to inculde all directories the files
and libs reside.
When running the servlet, the following errors show up in the App
Server
log file:
Logger: javax.enterprise.system.stream.err
Name-Value Pairs: _ThreadID=29;
Message ID: Link error
Complete Message java.lang.UnsatisfiedLinkError: no jni_if in
java.library.path
Logger: javax.enterprise.system.stream.err
Name-Value Pairs: _ThreadID=12;
Message ID:
Complete Message Exception in thread "Thread-79"
Logger: javax.enterprise.system.stream.err
Name-Value Pairs: _ThreadID=30;
Message ID: java.lang.UnsatisfiedLinkError
Complete Message getXppParm
at xpserv.XppIf.getXppParm(Native Method)
at xpserv.XppIf.run(XppIf.java:61)
Running javah gets the following error:
bash-2.05b$ javah -jni XppIf
error: cannot access XppIf
bad class file: C:\BioSpring\xpserv\XppIf.class
class file contains wrong class: xpserv.XppIf
Please remove or make sure it appears in the correct subdirectory
of the classpath.
com.sun.tools.javac.util.Abort
:
Running javah with the package name included in the name still fails:
bash-2.05b$ javah -jni xpserv.XppIf
error: cannot access xpserv.XppIf
file xpserv\XppIf.class not found
javadoc: error - Class xpserv.XppIf not found.
Error: No classes were specified on the command line. Try -help.
If anybody has had any success in using JNI with a servlet, I would to
hear how they configured it to work.
- 1
- How to design your applicationHI
I am a new to java and very curious about how to design an
application.can anybody tell me any really useful book/website
regarding that.
Thanks in advance
Anks
- 1
- Servelets or Applets, or ...Hi,
I am relatively new to JAVA but I am trying to build contact management
system which would allow users to create their list of contacts. The contact
data would be in database and security is important issue. I was initially
thinking of using servlets/jsp but than it occurred to me that there might
be other technologies in JAVA which could be better suited to what I need to
accomplish.
The application should allow user to search based on different criteria,
should also provide interface for inputting new contacts. Also it should
allow some level of sharing data in cases it is used on a company level
where many users have common contacts.
If you have a good idea of what technology would work best for my
application please email me justifying your suggestion so that I can
understand where you are coming from.
Any replies would be appreciated.
Thanks,
Don
--
High achievement always takes place in the framework of high expectation.
- Charles F. Kettering
- 2
- Performance evaluationHi,
I'm looking for a tool (library, framework, stand-alone application,
whatever) which can compare the performance of two classfiles.
I'm currently developping a (very) small compiler for java and I'd like to
compare different optimisations.
I heard that JMeter was a very good tool, but it seems to me that it's more
appropriate for a server environment which I don't have (and don't need).
So, could you advise me other performance evaluation tools ?
Thanks in advance,
Dasch
- 3
- Synchronization ProblemHello,
I have created an simple cache class, that allows items to be
added to HashMap. Every public method that uses that map,
is protected with synchronized keyword. The class also contains
an handleNotification method that is called periodically. This method
iterates over the map and refreshes the values in the map. The problem
is that when I test this class with Junit test i get
java.util.ConcurrentModificationException.
I don't understand why, because the handleNotification method is also
synchronized.
I managed to solve the problem using Doug Lea's java.util.concurrent
package, but
I would like to know why my test fails.
Best regards,
- Sami Lakka
Heres the code :
public synchronized void handleNotification() {
try {
Set keys = cache.keySet();
Iterator iter = keys.iterator();
while (iter.hasNext()) {
String tagName = (String) iter.next();
IItem item = backEnd.read(tagName);
cache.put(item.getTagName(), item); // Adds the item to the cache
}
} catch (ItemNotFoundException e) {
e.printStackTrace();
}
public void testHandleNotification() {
MockBackEnd backEnd = new MockBackEnd(3);
Cache cache = new Cache(backEnd);
IItem itemA = new Item("A");
IItem itemB = new Item("B");
IItem itemC = new Item("C");
cache.addItem(itemA);
cache.addItem(itemB);
cache.addItem(itemC);
// (1)
cache.handleNotification(); // ERROR in here.
backEnd.verify(); // Causes the mock to verify that method calls were made
// (2)
int size = cache.getSize();
Assert.assertTrue("Size is incorrect.", size == 3);
Assert.assertTrue("Item's value wasn't modified correctly by the backend",
cache.getItem("A").getValue().equals("MockValue : A"));
Assert.assertTrue("Item's value wasn't modified correctly by the backend",
cache.getItem("B").getValue().equals("MockValue : B"));
Assert.assertTrue("Item's value wasn't modified correctly by the backend",
cache.getItem("C").getValue().equals("MockValue : C"));
}
- 3
- Java EE 5 Deployment ToolIs there a deployment tool included with Java EE 5? The previous version had
one in the bin directory of the installation directory. From what I
understand it was pretty helpfull. It's hard to believe it would be
eliminated in an upgrade. Does anyone know how to access it?
--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-tools/200608/1
- 5
- Eclipse, Motif or x86/GTK2 FOR MANDRAKE 9.. Installation problemI have Mandrake 9.0 and I downloaded Motif version of eclipse,
but after I unziped, set the PATH and started:
Eclipse -data /home/mario/Documents/eclipse/
I got a message that startup.jar is not in the same directory
as its executable.
What can be wrong?
What version, Motif or GTK 2 I need for Mandrake 9.0
--
dk
- 10
- ArrayList vs VectorI remember reading a while back about the hazards of using Vector for a
dynamic array. However, in the latest javadocs, I've been reading that
Vector has been "retrofitted" for the Collections and is also synchronized.
Does Vector still have a bad rap? Should I be looking at the ArrayList
instead all the time and ditch Vector? When is a good time to use one over
the other? What are your design questions/decisions? As far as I can tell,
they are pretty much equal, but I'm just learning, so I'm asking what you
people think. Thanks.
- 10
- File CreationHi all
I am now doing a webapplication involving servlets.i want to creat
a dynamic view of an image.the image generated will be of type
BufferedImage and i want to write it into a file.i have created the
file using File class and CreateNewFile()method.but the file is not
created on that location.can anyone tell me why is this so? also tell
me whether wait() method will help to suspend a servlet for sometime?
Thanks in Advance
Regards
Anu
- 11
- [OT] Outsourcing: Real Or Bullshit ?
Do you think all this /outsourcing/ stuff is a bunch of *management*
bullshit to keep salaries down ( and increase their salaries at the
expense of the staff )?
I see demand being really high this year and in the next few.
It's kind of like that bullshit Boeing pulled saying they were going to
build the 7E7 elsewhere and making up a phoney bid process and then
getting Washington to concede all this money and then picking Everett.
--
W '04 <:> Open Source
- 11
- cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com )cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
- 13
- What about Ruby on RailsWhat I'm looking for is something like the web app framework generation
similar to what Ruby on Rails provides... The whole process of
obtaining user name, password, registering an account, confirming via
email and all the while talking to a database must have been written
thousands of times already... any ideas of an open-source Java
class/JSP library which will do this grunt work for you? Or, is there
anything similar to Ruby on Rails available for JSP/Servlet
development?
Cliff.
Manish Pandit wrote:
> You can try form based login, which is supported by any J2EE Compliant
> servlet container. You create a custom login form, keep the user and
> password fields as j_username and j_password, do a post on
> j_security_check and configure a security realm in your application.
> You can use LDAP/AD or have your custom authenticator to hook in.
>
> http://www.onjava.com/pub/a/onjava/2002/06/12/form.html
>
> -cheers,
> Manish
- 15
- problem using JAI bilinear interpolation to scale a bufferedimageHi ,
I am trying to write a function which rescales a bufferedimage using
JAI biliner interpolation
But it seems the rescaled image looses the data and now only a part of
the rescaled image is visible.I read the JAI documentation and read
somewhere that its because of not giving the proper renderinghint to
extend the border.
So i created the renderinghint and added it to the the JAI.create
method,still the result is same.
What am i doing wrong???I am new to this and am totally flabbergasted
:(
Help me!!!
Copying the code below
Thanx a lot
Raj
public static BufferedImage _rescale(BufferedImage image, float
xScale,
float yScale)
{
if((xScale == 1.0f)&& (yScale == 1.0f)){return image;}
// Interpolation interp = Interpolation.getInstance(
// Interpolation.INTERP_BICUBIC);
Interpolation interp =
Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
ParameterBlock params = new ParameterBlock();
params.addSource(image);
params.add(xScale);
params.add(yScale);
/** Add x translate */
params.add(0.0F);
/** Add y translate */
params.add(0.0F);
/** Adds interpolation method */
params.add(interp);
RenderingHints rh = new RenderingHints(JAI.KEY_BORDER_EXTENDER,
BorderExtender.createInstance(BorderExtender.BORDER_COPY));
RenderedOp outputImage = JAI.create("scale", params,rh);
//RenderedOp outputImage = JAI.create("scale", params);
Raster raster = outputImage.getData();
//BufferedImage result=new BufferedImage();
BufferedImage result = new BufferedImage(raster.getWidth(),
raster.getHeight(),
IMAGE_TYPE);
System.out.println(raster.getWidth()+"---"+
raster.getHeight());
result.setData(raster);
return result;
}
|
| Author |
Message |
swebb99@gmail.com

|
Posted: 2006-8-29 15:57:00 |
Top |
java-programmer, Changing contents of signed Jar ?
Hi,
If I want to unzip a signed jar and zip it backup after tweaking a file
or two do I have to sign it again ? I'm not sure if the signing process
uses the contents of the jar or not !
Thanks
Steve
|
| |
|
| |
 |
M.J. Dance

|
Posted: 2006-8-29 16:39:00 |
Top |
java-programmer >> Changing contents of signed Jar ?
email***@***.com wrote:
> Hi,
>
> If I want to unzip a signed jar and zip it backup after tweaking a file
> or two do I have to sign it again ? I'm not sure if the signing process
> uses the contents of the jar or not !
Imagine this. You sign a check for, say, $1000 to pay for something. The person
who receives that check asks: is it alright to add a couple of more zeros to the
amount stated? What would you say?
|
| |
|
| |
 |
Dag Sunde

|
Posted: 2006-8-29 18:36:00 |
Top |
java-programmer >> Changing contents of signed Jar ?
email***@***.com wrote:
> Hi,
>
> If I want to unzip a signed jar and zip it backup after tweaking a
> file or two do I have to sign it again ? I'm not sure if the signing
> process uses the contents of the jar or not !
>
Now, step back a little bit and ask yourself: "Why am I signing a jar?"
It is because i need the trust from the user, so that he will grant my
code extended priviledges (such as deleting his files).
If someone could extract, change, and rewrap a signed jar-file, wouldn't
that open the posibility for someone to change my code to do something
malicious, like actually delete all his files?
You can rest assured that every single byte in every class inside your
signed jar file is included in the hash while signing.
Change a period, and the signature *will* be invalid.
--
Dag.
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2006-8-29 20:15:00 |
Top |
java-programmer >> Changing contents of signed Jar ?
Dag Sunde wrote:
> You can rest assured that every single byte in every class inside your
> signed jar file is included in the hash while signing.
I believe that it's more accurate to say that each file is individually signed.
Thus (if I'm right) you can add new unsigned files to a signed JAR without
disturbing the validity of the previously-existing signatures (this is
necessary in order to allow a JAR to be signed by several entities
independently). You can modify the order of files in the JAR or change their
ZIP-level attributes (comments, permissions, etc). You can remove files from
the JAR and the remaining files will still be signed. You can even replace
individual class files and, while they will no longer be signed, all the others
will br OK, so (as long as the changed files themselves are not used in a
context where a valid signature is required), the JAR still work.
I'm not absolutely sure of all that, mind, but it's what the JAR spec and
security architecture document seem to be saying. I'd welcome correction.
Probably not useful to the OP, of course...
That raises an interesting question: are resources in a signed JAR checked
before being opened ? I can't find an answer, but I suspect it's no[*]. If
not, then it raises the interesting possibility that an applet or JWS app
supplied and signed by -- say -- the Department of the Environment, could be
hacked to display, um, inappropriate imagery. Again, I'd welcome correction if
I'm missing something, or just plain wrong.
-- chris
[*] There doesn't seem to be a "permission" which means "can [only] open signed
resources".
|
| |
|
| |
 |
Thomas Hawtin

|
Posted: 2006-8-29 22:49:00 |
Top |
java-programmer >> Changing contents of signed Jar ?
Chris Uppal wrote:
>
> I'm not absolutely sure of all that, mind, but it's what the JAR spec and
> security architecture document seem to be saying. I'd welcome correction.
A couple points worth noting: The JNLP spec requires that all jars are
signed with the same certificate. ClassLoader does not allow code signed
with the different certificates into the same actual package.
Most of the security documentation is hideously out of date. According
to the blogs, Sun now has someone working full time on code security, so
they might get better.
> That raises an interesting question: are resources in a signed JAR checked
> before being opened ? I can't find an answer, but I suspect it's no[*]. If
> not, then it raises the interesting possibility that an applet or JWS app
> supplied and signed by -- say -- the Department of the Environment, could be
> hacked to display, um, inappropriate imagery. Again, I'd welcome correction if
> I'm missing something, or just plain wrong.
Certainly not (trivially) with JWS. Non-JSW applets, I don't know. I
would strongly suggest not signing any code (you want something
malicious appearing to be authorised by yourself or your employer??).
And don't accept it either.
Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Cool new websiteBrand new site.
Loads of great stuff
Free membership and full access
Check out Yapooh!
http://www.yapooh.org
- 2
- 3
- This JComboBox does not resizes itselfHello.
By the program below, I wanted to change the message "a" on the
JComboBox
left side into "a-changed" by clicking the "change" button.
But all I saw was "..." because the JComboBox does not resizes itself.
How can I resize the JComboBox?
Thank you in advance.
----
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
public class ChangeItem extends JFrame {
public static void main(String[] args) {
new ChangeItem();
}
private ChangeItem() {
setSize(300, 100);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container cp = getContentPane();
cp.setLayout(new FlowLayout());
Combo combo = new Combo();
cp.add(combo);
cp.add(combo.new XButton());
setVisible(true);
}
private static class Combo extends JComboBox {
private Combo() {
addItem(new Item("a"));
}
private class XButton extends JButton {
private XButton() {
super("change");
}
protected void fireActionPerformed(ActionEvent e) {
Item i = (Item) getSelectedItem();
i.displayName = i.displayName == "a-changed" ? "a"
: "a-changed";
Combo.this.repaint();
}
}
}
private static class Item {
private String displayName;
private Item(String displayName) {
this.displayName = displayName;
}
public String toString() {
return displayName;
}
}
}
- 4
- Open Document Format / Rich Text Format Editor in Javahi all,
I'm looking for a java class or a set of java classes with which I can
display ( and edit ) a ODF-Document (or a RTF-Document).
One requirement is that it is possible to display different fonts,
text size, text color, text-decoration, images, tables with or without
borders/colors , links, background color, indent, numbering, bullets
etc.
I know about the RTFEditorKit and the HTMLEditorKit from the swing
packages ...and of their limitations.
As my application will use SWT (&RCP), I'm looking for a "better"
alternative. Does anyone of you know which classes could be of
interest for me?
Thanx for your help
Dominik
- 5
- Windows install locations J2SE and TomcatI'm installing J2SE, J2EE and Tomcat (and other Servlet Containers )
I hope I don't run into any conflicts because I notice J2EE comes with
the AppServer, and I'll also want to use Tomcat and possibly even try
WebSphere.
I'm wary of the standard location, with a space in the path
....\Program Files\....
and I can only forsee trouble from this. Any comments or suggestions
?
I already have it installed there, and I think it would be easy to move
( I don't even have JAVAHOME set yet )
Would I need to use uninstall or can I just move the whole dir
structure, below
jdk1.5.0_06 and then set up my path, env var's etc. ??
I don't have any other pressing ? at this point, but I'll be exploring
Tomcat too.
I know using it as a standalone ( on port 8080 ) is a breeze, but I'm
also curious if I can get the connectors to work, in conjunction with
Apache Server ( any current references ? )
I know the connectors have been improved over the last 5 years, just
want the current setup.
TIA
- 6
- houghtransformationHello,
I'm looking for sourcecode for a houghtransformation (the one for line
detection). Has anyone somethign like that?
regards, Johannes Elsinghorst
- 7
- short-circuit operators - part of the spec?My book says the following about && and ||
(see below dashed line.) And I wonder if this
is built into the language or an artifact of the
compiler. Previously (in my youth) we were
taught that depending on the compiler to skip
evaluating stuff was dangerous and bad for
maintenance.
----------------------------
known as the short-circuit logical operators:
&& short-circuit AND
|| short-circuit OR
The short-circuit feature of the && operator is that it doesn't waste its
time on
pointless evaluations. A short-circuit && evaluates the left side of the
operation first
(operand one), and if operand one resolves to false, the && operator doesn't
bother
looking at the right side of the equation (operand two). The operator
already knows
that the complete expression can't possibly be true, since one operand has
already
proven to be false.
- 8
- How to obtain the right 256 color pallette for the blend of two colors...?Hi all,
I have the following problem: I need to generate dynamically an image with
IndexColorModel (256 color PNG) of a text over a solid color. The parameters
are color foreground for the text and background. The problem is how to
select the most appropriate 256 color pallette for the text to look best. I
mean the text should be antialiased and any other hint applied. For example,
If I pick black on yellow image I think it should have all the tones of
black and yellow. Any red color will be useless and it will be lost space on
the reduced 256 color pallette. But in this example the red could be a good
choice for the transparent color...
How to solve this problem?
I guess I need some background on colors (theory of colors?) Any hint is
welcomed.
Thanks in advance
Sammy
- 9
- Problem with Javadoc out of memory in WSAD 5.1.2Good morning,
we are using WSAD version 5.1.2 , now we need to create the javadoc of
our project but during he creation we have the following error :
javadoc: java.lang.OutOfMemoryError: Please increase memory.
For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
such as -J-Xmx32m.
if I insert this line
C:\Programmi\Java\jre1.4\bin\javadoc.exe -J-Xmx32m
in the Preference --> Java --> Javadoc Menu we have the message
"javadoc command not exist"
how we could solve the problem using WSAD ??
Many thanks
Antonio
www.etantonio.it/en
- 10
- Executable Jars - why are they so rigid with classpaths ?If someone gives me a jar file with a Main in it and some supporting
library jar files, the Manifest.mf will contain information on what
the Main class is and also the location of supporting library jars
RELATIVE to the application jar file. But once I get the jar, I want
to move the supporting jar files to some other convenient directory.
But If I do that, the application jar file will not be able to locate
the supporting classes since the Manifest file has the supporting jar
paths pretty much HARDCODED ! How do I override the hardcode and give
it a different search path so that it can start looking at the new
directory ? This rigidity makes it so painful during times of
distribution. Please help.
- 11
- Filling a bitmap image with java 1.3.1I need to fill parts of a bitmap, representing European country's
electional cantons, with different colors, one per canton. I would
like to know what would be the best way to do it on a pure java awt
environment.
Thanks a lot.
- 12
- JAR files and manifest: Class-PathHi!
I have a base dir, where the application JAR file resides. In this base
dir, there's also a lib dir, nothing special really. In this lib dir are
some user look and feel JAR files, which are supposed to be loaded when
the application is started via the JAR file.
Is there any way to use the Class-Path entry in the manifest, so that it
scans that ./lib directory and loads all the JARs in there, *without
knowing up-front, what these files are*?
I tried
Class-Path: ./lib
Class-Path: ./lib/
Class-Path: ./lib/*
Class-Path: ./lib/*.jar
but none of them work.
Maybe there's some other way, which I don't know of. I simply don't want
to explicitly deploy the JAR's (versions, size etc.).
Anyway, how do I do it?
Karsten
- 13
- Internet web app - sending .PDF or .PS output direct to user printerI have a real brain-teaser here (it may not even be possible). We have
a web app, it will run across the INTERnet (not intra). The app will
generate reports. Currently what we do is:
1. generate the report (over on the server, obviously) as a .pdf file
2. once done, we forward the user to the URL of the .PDF file
3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
Reader and loads the .PDF in the new window.
For non-technology-related reasons, we can't do it this way (the user
must not be allowed to print the output more than once, and of course
once we dump them into Adobe Reader they can hit the Print button all
day, no way for us to stop them).
So we need to figure out how to take this output (we're generating it
with FOP) and dump it out to the user's printer (in other words, we
don't display the file, thereby allowing them to print multiple times;
we simply print it). I'm thinking with the code and the output file
over on the app server, there really isn't a way for me to direct this
output to the printer of a user who is running our app through IE. Or
am I wrong? If I'm right, can anyone think of another way to achieve
this result? Thanks as always.
- 14
- JBoss,integrated Tomcat,Mysqltsstsc wrote:
> I am new to J2ee, and have difficulty deploying them to JBOSS, can
> anyone help?
>
> --
> Posted via http://dbforums.com
I'm started programming in J2EE for several months ago now.
I'm using Eclipse (eclipse.org) as IDE.
There's a plugin available for free that helps you starting a J2EE
project. You can find the plugin at
http://sourceforge.net/projects/lomboz. You can deploy your project to
several aplication servers including JBOSS/Tomcat.
That's the way I started after a bit of reading.
Good luck,
Marcel
- 15
- Chart bar 3DHi,
I'm using JFreeChart with very good results but yet have the problem to
generate charts 3d bar where I can set the value of the three axis values
for the visualization.
Can any help me or tell where can I find a freeware library or applet.
Thank you in advance
Markus
|
|
|