 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- 1
- Why have the header 'public static void main(String[] args)' at all?Stewart Gordon wrote:
> jAnO! wrote:
> > How's that?
> > I thought that your main thread maintains a !dead state troughout the
> > runtime of your application.
>
> We're talking about the method called main, not the main thread.
Even so, both the main method and the main thread exit directly toward
the beginning of a typical GUI application. What may *not* end, on some
operating systems, is the native OS-level thread that is used to
implement Java's concept of the main thread.
It's undefined whether that OS-level thread lives or not following the
termination of Java's main thread. It must on many platforms in order
to get around POSIX and other similar thread conventions (including
Win32, IIRC) that designate it as a special thread. On a system that
implemented a very different threading convention, though, which didn't
carry POSIX and Win32's pre-multithreading baggage, it would probably
not be necessary.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
- 1
- tomcat authentication questionI'm fairly new to configuring server.xml and web.xml files in tomcat 4.
I am trying to require password authentication for access to a
subdirectory called "update" located within ROOT. I want all files
located directly in ROOT to be available without a password. I am having
trouble determing the correct path to use for the <url-pattern> in the
web.xml file in WEB-INF so that only the files in the subdirectory
"update" within ROOT are password protected.
If I use <url-pattern>/*</url-pattern> then no pages on the site may be
accessed without a password no matter their location. I am presuming
that this means I have set up the basic authentication correctly in
tomcat-users.xml, server.xml (in conf) and web.xml (in WEB-INF) but that
I now simply need to put the correct path into the <url-pattern> in
web.xml.
However, when I use <url-pattern>/update/*</url-pattern>, I can access
all of the pages within the update directory without being asked for a
password. I've experimented with many different paths and have not had
luck with any. I have been careful to close my browser and open a new
one each time between tests. I've also tried restarting tomcat for every
new test. Nothing works.
In my server.xml file, <Realm
className="org.apache.catalina.realm.MemoryRealm" /> is located within
the <Engine> tag (not within <Host> or <context>).
Have hunted around for a solution without much luck. I assume that I am
missing something very simple.
Here is my complete web.xml file...
<web-app>
<display-name>SMUpdate App webxml</display-name>
<!-- form login security tags -->
<security-constraint>
<web-resource-collection>
<web-resource-name>SMUpdate</web-resource-name>
<url-pattern>/*</url-pattern> <!-- this works but causes password
to be required for access to all pages on entire site -->
</web-resource-collection>
<auth-constraint>
<role-name>smupdate</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>SMUpdate</realm-name>
</login-config>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
</web-app>
Any suggestions would be very much appreciated.
Thanks.
- 6
- hashCode and equals (again)Hello,
I have spent a great deal of time reading through the postings in this
group as well as tutorials/explanations on sites elsewhere (i.e.,
Roedy's, etc.), but have not been able to get a good grasp of hashCode
and equals. I understand most of the rules for hashCode are defined
for use of objects in maps and other comparable collections, so it is
from that POV that I am trying to get a good grasp of the concepts.
Please help if you can - especially the SCCE later.
1. Originally, I thought that it made sense to make an equals method
that uses hashCode as its criteria for equality. However, as I now
understand hashCode, the code _must_ be the same for equal objects,
BUT it is _possible_ to be the same for non-equal objects. Am I
stating this correctly?
2. When would one use a set of criteria to determine equality that is
different from the criteria used to generate a hashCode?
3. Why aren't the hashCode_s in the following code the same?
package hashcode;
public class Main
{
public static void main(String[] args)
{
int[] a = { 1, 7, 0, 0 };
int[] b = { 1, 7, 0, 0 };
System.out.println( "equals: " + a.equals( b ) );
System.out.println( "hash a: " + a.hashCode() );
System.out.println( "hash b: " + b.hashCode() );
Integer[] c = { 1, 7, 0, 0 };
Integer[] d = { 1, 7, 0, 0 };
System.out.println( "equals: " + c.equals( d ) );
System.out.println( "hash c: " + c.hashCode() );
System.out.println( "hash d: " + d.hashCode() );
int[] e = a.clone();
Integer[] f = c.clone();
System.out.println( "equals: " + a.equals( e ) );
System.out.println( "hash a: " + a.hashCode() );
System.out.println( "hash e: " + e.hashCode() );
System.out.println( "equals: " + c.equals( f ) );
System.out.println( "hash c: " + c.hashCode() );
System.out.println( "hash f: " + f.hashCode() );
}
}
Thanks,
Todd
- 6
- Another error creating JVM through JNII notice that there is another poster with a similar problem to mine,
but he's on Unix and I am on Windows, and I think there may be a
setup/config problem, so I am starting a new thread
I am also getting an error creating the JVM, I am using j2sdk1.4.2_04
with MSDEV 6.0 and have cut'n'pasted about three different pieces of
sample code ( I won't post loads of code here) from working examples
found on the web, they all fail on the call to JNI_CreateJavaVM with an
error code of -1
I am wondering is there are any common setup problems, perhaps having
dlls in the wrong place of environment variables set wrongly, that
might be a cause of this problem?
Here is an example of one code sample I tried that did not work.
Incidentally if I set the version wrong, I get a different error code
(-3, which is to indicate wrong version)
jint ret;
JavaVM* jvm;
JNIEnv* env;
JavaVMInitArgs args;
JavaVMOption options[1];
args.version = JNI_VERSION_1_2;
args.nOptions = 1;
options[0].optionString = "-Djava.class.path=c:\\";
args.options = options;
args.ignoreUnrecognized = JNI_FALSE;
ret = JNI_CreateJavaVM(&jvm, (void **)&env, &args);
- 8
- When to synchronize a listHi,
I wanted to know when should I synchronize a list. No, this is not the
old question regarding ArrayList Vs Vector. My doubts are more related
to synchronization ( whether a plain ArrayList or synchronized
Arraylist or Vector)
The common answer I find is that Vector or synchronizedList( new
ArrayList ) should be used when two or more threads are accessing the
contents of the List.
For example, consider following code in a Java class.
Vector vec = new Vector();
for (int i = 0; i < somenumber; i++)
{
//do something
vec.add(new Integer(i));
//do more
}
My thought is that whether you use any list, you still would have to
make the loop synchronized. Even if a vector or synchronized ArrayList
is used, another piece of code might just come in and modify that
vector (not run that loop, but just want to modify vec ) before the for
loop comes back again to that place. This is because, synchronized list
means when one thread is updating, another cannot. But if the first
thread is not updating, other freely can. This might create
inconsistent data in the List.
As far as I understand, the synchronization in the Vector is on the
instance itself. So before calling any method on the Vector instance, a
lock is obtained by runtime. Once method execution is over, the lock is
available to any other thread.
This is more possible in Servlets or JSP. ( EJB , I do not think so,
because, a separate instance is assigned to each thread calling a
method in the EJB ).
Another example, would be using a List as a member inside a singleton
class. If two threads request the instance of the singleton, both will
get the reference to the same instance of the class. Say the second
thread gets an index and has to retrieve the object at that index
position in the list, while the first thread is updating the vector. It
might turn out that the value retreived by the second thread might not
be what it expected. So I would anyway have to synchronize the methods
in the singleton, to get a lock on that instance before attempting to
call any method on that instance.
When would I use a List and when would I use synchronized List. Does it
really make any difference whether I use Vector or ArrayList when I
have to synchronize all access to the List. Please give any example to
help me understand the situation.
I have searched google and also I have searched previous posts. I could
not find the answer to this specific question so I am posting this. I
did find lot of stuff related to ArrayList Vs Vector, and which is
better , but not related to synchronization and Lists.
Thanks.
- 8
- JSP Code Review Tool or Syntax Analyzer?We use an automated Java source code review tool (Hammurpai) in our
company. It does the job. However, we write a substantial amout of JSP
code for web and voice applications. The Java code review tool says it
will also handle JSP, but you need to run it through Jasper first to
turn it in to *.java files. I've been searching all over, but can't
find what I need. I want to take a directory and sub-directories of
*.jsp files and run them through an automated tool that checks for
syntax, parameter naming conventions, closed attribute quotes, closing
tags, ample whitespace, quantity of comments, etc. I want it to show
the violations so the code can be fixed before being bundled and
deployed, only to find out later that it has a problem compiling
because of a missing closing quote. Does anything like this exist out
there?
- 8
- Graphics2D question.Hello,
I want to build my application from three main classes.
1. A frame class to handle file operations.
2. A Drawing panel to render images to.
3. An engine to perform the actual rendering.
All the examples I have read so far for Image stuff in Java have
everything stuffed into one monolithic class, and the crux of the
rendering seems to be done in paint(Graphics g) or
paintComponent(Graphics g) using a g2d object cast againg the parameter g.
If I wanted to do calculations for rotations translations etc I can do
this with the AffineTransform class setX methods, but the drawImage
method of g2d seems to be handled in the paint/paintComponent methods.
This is fine until I want to specify x, y arguments in the drawImage
Method as neither Paint or PaintComponent take these parameters in their
method signature how can I do this, is there another way to draw apart
from the paint/paint component methods?
Any help appreciated.
- 10
- need help with jar archivHi,
I need some help with my jar archive.
I need to read a file in my program. I do that with
FileReader.
To locate the file I use getClass().getResource("key/key.txt")
I used the above class.getResource so that teh programme locates the file
in the jar archive. But it doesn't work after getting packed in
jar, otherwise works perfectly alright.
I use the following command to make the jar:
jar cmf caesar/mainClass cipher.jar caesar/c*.class caesar/key/key.txt
Can somebody please help me with that.
I get a error-message as follows
file:\E:\myprogs\Security\cipher.jar!\caesar\key\key.txt ( The syntax for
the filename,
directory and data volume is wrong)
The relevant code lines:
URL fileUrl = getClass().getResource("key/key.txt");
// String filename = fileUrl.getFile();
System.out.println(fileUrl.getFile());
try {
System.out.println(fileUrl.getFile());
BufferedReader read =
new BufferedReader
(new FileReader(fileUrl.getFile()));
Regards,
Sunil
- 11
- Multiline Textbox For Web pageHello,
I have been trying to get a textbox to work now for over a week, and
am starting to think there is not answer. I have a web application
that populates an htmlinputtextarea. The reason I chose it was
because it could display multiple lines. However, if the report gets
too wide for the textbox, the text starts to wrap. I have tried
override and white-space for CSS class, but the best I can get is one
long line (white-space: nowrap). For the setValue, I use \r\n for my
end of line. Example: txtBox.setValue("This is one line\r\nThis is
line two.");
Is there a better textbox than the htmlinputtextarea to display
multiple lines of text with a vertical and horizontal scrollbar? If
not anybody know what I am doing wrong?
Thanks for any help
Ryan
- 14
- Tomcat is giving the wrong MIME type?I use Tomcat serves a web application. I put all the files including
jsp, css and javascript file inside the Tomcat server.
When I request a jsp page through both Firefox1.5 and IE6, I found the
css and the javascript files are not loaded correctly.
I used LiveHttpHeaders to inspect the request and response headers. I
found that the server is giving text/html to the Content-Type of all
the files.
Is the problem in Tomcat configuration or in the browser?
Any idea?
TIA...
- 14
- Instantiating a class read in from user inputI am trying to write a simple application that will instantiate a class
whose name is read in from user input. Since the name of the class is being
read in as a String, how can it be instantiated? For example, suppose I
store the name of the user supplied class in a String variable called
ClassName. I can't simple just instantiate the class with a statement such
as new ClassName(), since ClassName is a String. Any advice?
- 15
- i am new to javaIn article <eje544$gkc$email***@***.com>, Prejith took
the hamburger meat, threw it on the grill, and I said "Oh Wow"...
> hello
>
> i am new to java programming..since it is a requirement for my task i am
> suppose to write java jobs..i had a small training in core java concepts for
> 3 days..
>
> my question here is i am suppose to use some file handling and exception
> handling in my programme..can you help me with the above mentioned
> concepts...
>
> Regards
> Prejith
Okay, it breaks down like this. File handling is just that, things you
want to do to a file. You can read files and write to them. Whenever
you read to or write from a file, you have to handle exceptions, the
main one being FileNotFoundException (in case there's no file to be
found). That's why they want to empahasize both of those points.
Whenever you're doing I/O, you have to use try/catch blocks. I think
I/O exception's the other one you have to handle but my memory is
fuzzy on it right now.
HTH
--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "All I Really Want" -- Alanis Morissette
"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."
-- Robert Redford "Spy Game"
- 16
- 16
- JVM crashes when calling C++ DLLhi all,
I am calling functions in existing C\C++ program (DLL) through a
wrapper C++ program (another DLL) from java.
ie java <---->Wrapper C++ <-----> Ordinary C++ function
My problem is JVM crashes(some times) and gives the following error,
An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred
at PC=0x80C2F75
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for
possible
reason and solutions.
Current Java thread:
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
at java.lang.Class.getMethod0(Class.java:1893)
at java.lang.Class.getMethod(Class.java:976)
at javax.swing.UIDefaults.getUI(UIDefaults.java:726)
at javax.swing.UIManager.getUI(UIManager.java:784)
at javax.swing.JToolTip.updateUI(JToolTip.java:82)
at javax.swing.JToolTip.<init>(JToolTip.java:64)
at javax.swing.JComponent.createToolTip(JComponent.java:2603)
at javax.swing.ToolTipManager.showTipWindow(ToolTipManager.java:257)
at javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:689)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Dynamic libraries:
0x7CC00000 - 0x7CC1D000 C:\WINDOWS\SYSTEM\IMAGEHLP.DLL
Heap at VM Abort:
Heap
def new generation total 4608K, used 234K [0x10010000, 0x10510000,
0x10ed0000)
eden space 4096K, 1% used [0x10010000, 0x10021eb0, 0x10410000)
from space 512K, 31% used [0x10490000, 0x104b8a80, 0x10510000)
to space 512K, 0% used [0x10410000, 0x10410000, 0x10490000)
tenured generation total 60544K, used 11740K [0x10ed0000,
0x149f0000, 0x1c010000)
the space 60544K, 19% used [0x10ed0000, 0x11a47348, 0x11a47400,
0x149f0000)
compacting perm gen total 12032K, used 11914K [0x1c010000,
0x1cbd0000, 0x20010000)
the space 12032K, 99% used [0x1c010000, 0x1cbb2ad0, 0x1cbb2c00,
0x1cbd0000)
Local Time = Thu Aug 26 18:58:43 2004
Elapsed Time = 41
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_02-b03 mixed mode)
#
Can Any one give me a solution to this problem or way to find out the
cause of the problem,
Thanks and Regards,
Chella.mani
|
| Author |
Message |
jodasi

|
Posted: 2003-11-4 7:07:00 |
Top |
java-programmer, servlet mapping problems
Hey guys/gals. My first attempted at servlet mapping flubbed.
Background:
A friend at work suggested I store my source in webapps\wbrl\jsp
So I have Tomcat\webapps\wbrl\jsp\WebRoll.jsp
Currently I type http://localhost:8080/wbrl/jsp/WebRoll3.jsp
This brings up my application successfully.
I would like to be able to type http://localhost:8080/wbrl and have
it bring up my web page.
So I tried to change the web.xml, but it doesnt work.
<servlet>
<servlet-name>WebRoll3</servlet-name>
<servlet-class>WebRoll3</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WebRoll3</servlet-name>
<url-pattern>/wbrl/*</url-pattern>
</servlet-mapping>
<url-pattern>/wbrl/*</url-pattern> causes "Wrapper cannot find servlet
class WebRoll3 or a class it"
How do i fix this? Do I use filter mapping? I got totally lost in the
filter mapping explanation.
|
| |
|
| |
 |
Wendy S

|
Posted: 2003-11-4 11:44:00 |
Top |
java-programmer >> servlet mapping problems
joel s wrote:
> Hey guys/gals. My first attempted at servlet mapping flubbed.
You don't have a servlet, there's nothing to map. (Well, technically JSP's
do get converted to Servlet code, but you don't use <servlet> and
<servlet-mapping> for JSP's.)
> Currently I type http://localhost:8080/wbrl/jsp/WebRoll3.jsp
> This brings up my application successfully.
> I would like to be able to type http://localhost:8080/wbrl and have
> it bring up my web page.
Put it in the 'Welcome Files' list and Tomcat will redirect to that .jsp
when it receives a request with no filename specified. You posted that bit
of web.xml in your other message, but it still lists index.html/index.jsp
instead of the file you want Tomcat to serve up.
> How do i fix this? Do I use filter mapping? I got totally lost in the
> filter mapping explanation.
You'd first have to write a class that extends Filter. I don't think that's
what you want for this problem.
--
Wendy in Chandler, AZ
|
| |
|
| |
 |
jodasi

|
Posted: 2003-11-5 1:20:00 |
Top |
java-programmer >> servlet mapping problems
Ok, well, I added <welcome-file>WebRoll3.jsp</welcome-file>
<servlet>
<servlet-name>WebRoll3</servlet-name>
<servlet-class>WebRoll3</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WebRoll3</servlet-name>
<url-pattern>/wbrl/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>WebRoll3.jsp</welcome-file>
</welcome-file-list>
It brings me to:
http://localhost:8080/wbrl/
Directory Listing For /
-----------------------------------------------------
Filename Size Last Modified
jsp/
Then I have click "jsp/" to get to the welcome page
How do I get it to do what I want which is type:
"http://localhost:8080/wbrl"
and have it bring me to:
http://localhost:8080/wbrl/jsp/WebRoll3.jsp
Regards, Joel S
Wendy S <email***@***.com> wrote in message news:<ZfFpb.3249$7B2.2948@fed1read04>...
> joel s wrote:
>
> > Hey guys/gals. My first attempted at servlet mapping flubbed.
>
> You don't have a servlet, there's nothing to map. (Well, technically JSP's
> do get converted to Servlet code, but you don't use <servlet> and
> <servlet-mapping> for JSP's.)
>
> > Currently I type http://localhost:8080/wbrl/jsp/WebRoll3.jsp
> > This brings up my application successfully.
> > I would like to be able to type http://localhost:8080/wbrl and have
> > it bring up my web page.
>
> Put it in the 'Welcome Files' list and Tomcat will redirect to that .jsp
> when it receives a request with no filename specified. You posted that bit
> of web.xml in your other message, but it still lists index.html/index.jsp
> instead of the file you want Tomcat to serve up.
>
> > How do i fix this? Do I use filter mapping? I got totally lost in the
> > filter mapping explanation.
>
> You'd first have to write a class that extends Filter. I don't think that's
> what you want for this problem.
|
| |
|
| |
 |
Ben_

|
Posted: 2003-11-5 1:28:00 |
Top |
java-programmer >> servlet mapping problems
You get a directory listing because there is not default document in /wbrl.
Place a WebRoll3.jsp in /wbrl to redirect to the place you like (with
response.sendRedirect for example). Of course you may want to add a
'welcome-file' entry with 'index.jsp' (which a bit more standard :-).
|
| |
|
| |
 |
Sudsy

|
Posted: 2003-11-5 1:30:00 |
Top |
java-programmer >> servlet mapping problems
joel s wrote:
> Ok, well, I added <welcome-file>WebRoll3.jsp</welcome-file>
> <servlet>
> <servlet-name>WebRoll3</servlet-name>
> <servlet-class>WebRoll3</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>WebRoll3</servlet-name>
> <url-pattern>/wbrl/*</url-pattern>
> </servlet-mapping>
> <welcome-file-list>
> <welcome-file>WebRoll3.jsp</welcome-file>
<welcome-file>/jsp/WebRoll3.jsp</welcome-file>
> </welcome-file-list>
>
|
| |
|
| |
 |
Wendy S

|
Posted: 2003-11-5 8:05:00 |
Top |
java-programmer >> servlet mapping problems
joel s wrote:
> Ok, well, I added <welcome-file>WebRoll3.jsp</welcome-file>
> It brings me to:
> Directory Listing For /
> Then I have click "jsp/" to get to the welcome page
> How do I get it to do what I want which is type:
> "http://localhost:8080/wbrl"
> and have it bring me to:
> http://localhost:8080/wbrl/jsp/WebRoll3.jsp
Without any path given, it expected to find your file in the root of the
webapp directory. It didn't, so it gave up and showed you the contents of
the directory. You need this instead:
<welcome-file>jsp/WebRoll3.jsp</welcome-file>
(Sudsy, you have a leading slash, but SRV.9.10 says "The welcome file list
is an ordered list of partial URLs with no trailing or leading /.")
Joel, you might want to download the Servlet Specification and at least flip
through it so you know what's there. The behavior you're trying to get is
covered chapter 9 of the Java Servlet Specification Version 2.3. This
document explains what your Servlet container is required to do for you,
which is useful when you're wondering, "Why won't it ___?" and "How do I
___?"
--
Wendy in Chandler, AZ
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Applet, use seperate classHi I am making a applet that uses a seperate class, but my IDE tells me
that when I try to use my seperate class, that it cannot resolve the
symbol (ie cant find it) ,or if I try to import the class, that it
expects a '.'. Here's the code
import java.awt.*;
public class Buiding
{
private int width, height, topBuffer, sideBuffer, widthOfWindow,
heightOfWindow,
heightOfThird;
public Buiding(int width, int height)
{
this.width = width; this.height = height;
topBuffer = height/20;
sideBuffer = width/20;
widthOfWindow = width/10;
heightOfWindow = height/10;
heightOfThird = height/3;
}
public void draw(int x, int y, Graphics page)
{
int origionalX = x, origionalY = y;
page.drawRect(x, y, width, height);
int randomXWidth = x - widthOfWindow;
int randomX = (int)(Math.random()*randomXWidth);
int randomYWidth = y + heightOfThird - 2*topBuffer -
heightOfWindow;
int randomY = (int)(Math.random()*randomYWidth);
randomX += x;
randomY += y;
page.fillRect(randomX,randomY,widthOfWindow,heightOfWindow);
}
}
import java.applet.Applet;
import java.awt.*;
import Building; //stops here
public class test extends Applet
{
private Building test; // or here if the above line is not there
public void init()
{
test = new Building(100,100);
}
public void paint(Graphics g)
{
test.draw(10,10,g);
}
}
Thanks for any help
- 2
- Help for Windows CEHi
I'm a student and I need to develope an application in java for
Windows CE.
Now I've installed on my pc Eclipse and a sun virtual machine for
windows XP.
My question is: What I can do in order to use my eclipse for develope
an application for my pocket pc with windows CE?
How I can do for make graphical applicationin windows CE? Under
Windows I use the VE plugin but under winCE what I can do for this
problem?
thank very much for all people who help me!
Fabrizio Dominici
- 3
- CLASSPATH clobbering, win2kfrom <http://java.sun.com/j2se/1.4/install-windows.html#Environment>:
"Choose Start, Settings, Control Panel, and double-click System. On
Microsoft Windows NT, select the Environment tab; on Microsoft Windows
2000 select the Advanced tab and then Environment Variables. Look for
"Path" in the User Variables and System Variables. If you're not sure
where to add the path, add it to the right end of the "Path" in the
User Variables."
under System Variables the value of "Path" is:
"C:\Program Files\Java\jdk1.5.0\bin\"
from
<http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#2c>
I followed these instructions:
"If you still have problems, you might have to change your CLASSPATH
variable. To see if this is necessary, try "clobbering" the classpath
with the following command:
set CLASSPATH="
"clobbering" fixed the problem, "java HelloWorldApp" worked fine.
However, since I need to clobber the CLASSPATH variable I need to
change it's value, but to what, pls?
thanks,
Thufir
- 4
- void methods and "return"hi,
void methods cannot return values, however, i noticed that i can still
use "return" without any value to exit a method like this:
public void myMethod(int arg0)
{
if (arg0 == 0) return;
...
}
question: is the above ok or will i get errors with other java versions.
i'm using jre1.4.1_02 in eclipse.
thx!
- 5
- contributiscusate ho sbagliato mira
"Laura" <email***@***.com> ha scritto nel messaggio
news:cnMSg.126457$email***@***.com...
> ma un informatico con p.iva fa parte dei lavoratori autonomi a cui
> verranno aumentati del 2%
> o dei lavoratori atipici a cui saranno aumentati del 5%?
>
- 6
- Java coding with Agile PLM SDK - QuestionHello,
I was wondering if any one out here is dealing with a PALM System called
Agile and has some experience with the Agile SDK. If so can you email me, I
have a question on the SDK.
Also if any one know where I might find like a forum or message board that
deals with The Agile PALM system that would be help full too.
Thanks
-Dale
- 7
- Bug#398510: No longer active on this task.retitle 398510 RFP: openjdk-hotspot-jvm -- Hotspot JVM from Sun
retitle 398448 RFP: openjdk-compiler -- sun java compiler, javac
thanks
Hi
I'm no longer active on this task so I rename it to RFP. However
other people should be able to start from where I stopped so
I have uploaded the files to:
http://debian.opal.dhs.org/java-jdk-dev
Best regards,
// Ola
--
--- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ----
/ email***@***.com Annebergsslingan 37 \
| email***@***.com 654 65 KARLSTAD |
| http://opalsys.net/ Mobile: +46 (0)70-332 1551 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 8
- 9
- Middle Tier for Java and PHPHi,
Let's say you have a Java SE Application and a PHP Web App that are both
accessing a database directly. You want to control things more formally
by using a common middle tier (enforcing things in addition to database
constraints / sprocs).
Any experience on what works and/or recommendations?
Thanks,
John
- 10
- Java process title editingI need a component that takes a String and puts it into Unix process
table by calling natively setproctitle. On Windows it can do nothing, I
don't care.
Also a possibility to use variables such as number_of_threads would be cool.
Why? When running a lot of Java server stuff on a Linux box it's really
hard to tell which process is which. Especially in production
environment "kill -9":ing makes me always feel quite uncomfortable...
If there is no such thing, then I'll have to roll my own. But better to
check first, don't wan't to reinvent stuff. :) Google didn't turn out
anything. ..
- 11
- creating classes dynamicallyHI is it possible to create classes dynamically and if so how? What im
trying to do is have a user enter names into a textbox and use these
names to create instances of classes dynamically. the code below doesnt
work once never mind for numerous classes?????
String help= TextField.getText();
help = new SOP();
cheers
- 12
- [ANN] DBPool : JDBC Connection Pooling - v4.7.2 released
A new version of DBPool has been released (v4.7.2), and is available for
download from http://www.snaq.net/java/DBPool/
DBPool is a pure-Java library for the pooling of JDBC connections for
applications that require high performance database access.
Features include:
* Pool Manager to allow easy configuration and/or quick startup
* User-configurable pools to achieve high performance
* Caching of statements to provide maximum performance
* Multiple connection pools simultaneously
* User-definable connection validation allows increased reliability
* Connection limit allows constraining to database licence restrictions
* Improved performance through caching of statements
* It's FREE, and source code is included
DBPool has been used in many large-scale commercial applications
throughout it's lifetime and various stages of development, on both
Solaris and Windows deployment platforms.
Stan
- 13
- Hiring Sr. Java Tool EngineerGood afternoon my name is Jason and I am a recruiter. My client is
currently seeking 3 Sr. Java Tool Engineers immediately! We are
looking for software engineers with SDLC and BCI experience.
The position is located in the Northern California area and the
company, which I can not disclose at the moment, is a groundfloor
cutting edge software application company that recently secured top
tier Venture Capital Funding. The salary range is $90k-125k and the
benefits include Medical, a great work environment and Pre-IPO Stock
Options. Company will relocate and sponsor/transfer VISAs.
If you are interested in getting more information about this position
please email me at email***@***.com and if possible please
include your resume for review. Thank you and Good Luck!
- 14
- Java and colour management...I have colour profile applied to my monitor.
When I browse a website that needs the Java plugin to run, it removes the
colour corrections making my display too bright! WHY the hell does java do
anything to my display???
Thanks.
- 15
- Where's the source for midpapi.zip?OK - I give up - what has Sun done with the source to "midpapi.zip"?
I'm usting the WTK, 2.0.
Thanks in advance for any assistance.
--
__________
|im |yler http://timtyler.org/ email***@***.com
|
|
|