Simple question about JAVA path

Advertisement
October 11

Hi. I have a simple question , but I spent several hours trying to find an answer.
How do I know the location of the java executable which is used by Concurrent Manager.
I already know that running which java under application user will not give me the correct answer

Advertisement

Replay

Maybe you can try like this:
     public String getPath(){
          Class cls=getClass();
          String className=cls.getName();
          String packageName=cls.getPackage().getName();
          System.out.println(className);
          System.out.println(packageName);
          String newClassName=className.replaceAll("\\.", "/");
          String resouceName=newClassName+".class";
          System.out.println(resouceName);
          URL url;
          url=cls.getClassLoader().getResource(resouceName);
          String path="";
          path=url.getFile();
          return path;
     }

View 4 Replies

Just simple question about java HTTP session mechanism...

November 30

I have one simple question regarding the java HTTP Session Mechanism. 1) Is there another alternative for the HTTP Session ? If have, what the alternative? 2) I have been acknowledge that HTTP session is same as cookie system and others say have many

View All Replies

Simple question about mount and delay script

November 30

Hello, I have a simple question about mounting volumes on start up. My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs) I use this script (daily) for serveral connections with external volumes

View All Replies

Simple question about flex and AS 3.0

November 30

Hi, this might sound like a simple question so I apologize... I have both a copy of flex 2 and 3, and i want to simply code in AS 3.0 not mxml. I referred to the help of both flex 2 and 3, and all i could come up with is "you can add dynamic behavior

View All Replies

Simple question about telnet and characters

November 30

Hi all, We've installed for the first time a SUN machine. So i think it's for a SUN expert a very simple question. Normally when i type a special character it will be dispayed like " � " [alt+132] But when i use a telnet session and i type "

View All Replies

Question about java virtual machine

November 30

Hi, Recently I met a strange conflict. I used Netbean to build a project and execute this project very well. However, when I opened a command window promt and tried to use the default command 'java' to execute my main class, the virtual machine repor

View All Replies

A simple question about parameters to functions

November 30

hello, Passing parameters between functions in java suppose to be "by reference". I have a simple test case that it doesn't work. I'll be happy if someone will tell me what is wrong: public class Test String text ; public static void main(String

View All Replies

Simple question about a frequency increase

November 30

I am doing a simple bode plot that will be used by an electronics class.  All I need to know is how to have a frequency input that I can change after a delay loop.  I would like to change the frequency about 100 Hz per loop. Solved! Go to Solution.Me

View All Replies

Question about java

November 30

I have a question here that I cant seem to figure out. I would really appreciate it if someone would help me out with the answer. I just got started learning Java and have a question: Suppose list is an array of five components of the type int. What

View All Replies

QUestion about Java and GC

November 30

Hello, I have a question regarding the garbage collection in java When can GC be called upon a class? Right now, I have a linked list of entities which when an entity is removed, it simply removes the reference of that monster (thus meaning the monst

View All Replies

Basic question about Java, UNIX and OAS

November 30

Hi, Can I create an appication that contains GUI components like testbox and textfields etc...and then load/import it into OAS? Can I again, create such an GUI application and then load it UNIX platform and run it? The reason I asked because I did cr

View All Replies

I have some general questions about Java

November 30

Is there a such thing as a list of every Exception in Java? Is there somewhere I can look at examples of try statements, catch statements I guess tutorials on the basics of Java, like what would constitute these statements.Thanks so much. This helps

View All Replies

Simple question about billing address.

November 30

This question may be simple, but is important to me. May I change my credit card without changing my billing adress? It's just that I am afraid that if I change my Credit card, which is european, I will then receive my bill in euros. So, will it affe

View All Replies

Simple question about billing adress.

November 30

This question may be simple, but is important to me. May I change my credit card without changing my billing adress? It's just that I am afraid that if I change my Credit card, which is european, I will then receive my bill in euros. So, will it affe

View All Replies

SIMPLE QUESTION ABOUT HD!!!

November 30

Ok, I know that there are no HD DVD players yet, but can I burn my HD project on a regular DVD just for my own personal use on my G5? Or I can only use the "build" button? If I can do that... What am I doing wrong? Are my DVD formats wrong on my

View All Replies

A question about Java Card API 2.2.1

November 30

Hi,I am doing my first project on java card and I have the software installed(java_card_kit-2_2_1, OCF 1.2, j2sdk1.4.1). java_card_kit-2_2_1 include these package: java.lang java.io java.rmi javacard.framework javacard.security javacardx.crypto com.s

View All Replies

A simple question about Drag and Relate navigation

October 11

Dear experts I have found SAP help or related manuals only good at talking difficult things such as how to customise the drag and relate targets, etc.  However, after I followed exactly and then how to test. Then I just see pieces of information, ver

View All Replies

Question about Java GSS-Kerberos authentication

October 11

Hi, I am new to GSS API. I have a client requirement to use Java GSS Kerberos Authentication instead of using IIS for Integrated Windows Authentication. In IWA, the IE browser automatically picks up the logged-in windows user credentials and passes i

View All Replies

Question about  Java and XML  rendering for Word 97 upwards.

November 30

Without using the apache POI library, and by sticking to non-pay products, is it possible to use java or XSLT/XML to turn an xml formatted file into a Microsoft Word/Excell/PDF file within one framework?Look into Apache FOP. But be warned: it will mo

View All Replies

Simple question about regular expressions

November 30

Hi, Using Java's regular expression syntax, what is the correct pattern string to detect strings like the following :- AnnnnnA where A = a single (fixed) alphabetic character and n = at least one but possibly many digits [0-9]. Example strings to be

View All Replies

Tags:

  1. will z10 pair with ive-w530
  2. add puffin to ipad ios 5.1
  3. 0056 error code sccm
  4. BAPI_PO_CREATE1 WBS
  5. how to include fcaregul in idoc
  6. 30LF
  7. DCD5
  8. QS8E
  9. stepa89
  10. schoolfv5
Copyrights 2019 Fcffair BigData Resource, All rights reserved