How to get 2 different ClassLoader in one JVM?

I call ClassLoader.getClassLoader() and Thread.currentThread.getContextClassLoader() but i always get the same ClassLoader instance.
I want to load my interfaces and abstract classes by one ClassLoader and load my concrete classes by another ClassLoader.How can i achieve this?

Hmmmm...create a new class loader and use it?

Similar Messages

  • How to get all the values in one column of a JTable

    How to get all the values in one column of a JTable as a Collection of String.
    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column.

    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column. You could always write a custom TableModel that stores the data in the format you want it. It would probably be about 50 lines of code. Or you could write a loop in 3 lines of code. I'll let you decide which approach you want to take.

  • How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    If you bought a CC for team, you can log in at http://adobe.com and insert the e-mail that you gave at the moment at the purchase and than you can manage and see you product/plan/team.
    If I was not clear you can use the following link to help you solving your issue:
    Creative Cloud Help | Manage your Creative Cloud for teams membership
    If your not clear about this situation, contact with an agent of Adobe, by chat or phone. Use the following link to see the type of support you have on this matter:
    http://adobe.com/getsupport
    I think this will help you.
    Regards

  • How can I get 20 different movies onto one dvd and have them play consecutively?

    I am having a hard time converting all of the videos I've taken of my kids from my iphone onto a dvd. I would like the videos to play consecutively as if we were watching home movies from our regular video recorder. How can I convert my videos to one dvd?

    If the total playing time for all of the videos is less than 120 minutes create a slideshow in iDVD and add the movies to it in the order you want them to play.  Select any slide duration time except manual.  Do not add any music to the slideshow as it will override the audio in the video files and do not add any transition as it won't be a smooth transition.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process.
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.

  • How to get video of more than one security camera in java

    I want to get video from more than one security cameras and i really donot know yet how we do this that get videos continously with more than one camera
    olz i a beginner help me

    Hello.
    I don't know if the topic still matters, but as I took advantage from the information in the preview posts, I decided to give my share.
    I successfully ran three webcameras at the same time in a Linux machine with JMF.
    The two main issues are:
    1. It is necessary to run the binary "jmfregistry" ($JMFHOME/bin/jmfregistry) to detect the cameras every time a new one is added to the system. (Remember to run the binary with a user with write privileges on the registry file ($JMFHOME/lig/jmf.properties)).
    2. It is mandatory to plug each camera in a different usb bus. In my case, the PC I was using had three accessible two-ports buses, two in the rear and one in the front of the box. If we try to use two cameras in the same bus, one of them won't work or the detecting procedure in the "jmfregistry" program will hang.
    I hope it helps. Any question, please feel free to ask.
    Andr� Braga
    My configuration:
    Java:
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    JMF-2.1.1e_linux_native
    The machine:
    OpenSuse Linux version 10.2 (kernel 2.6.18.2-34-default)
    running in a Celeron D processor 2.66 GHz
    Motherboard: Giga-byte GA-8IPE1000 Pro2 motherboard (865PE)
    The result of the "lsusb" command:
    Bus 004 Device 004: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 WebCam
    Bus 004 Device 001: ID 0000:0000
    Bus 005 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000
    Bus 002 Device 023: ID 0c45:6007 Microdia
    Bus 002 Device 001: ID 0000:0000
    Bus 003 Device 004: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
    Bus 003 Device 001: ID 0000:0000
    In time (for linuxers): It was necessary to download and install the gspcav driver (http://mxhaard.free.fr/). It is also necessary do load this driver before the camera driver:
    modprobe gspca
    modprobe zc0301 (this one comes with the distribution)

  • How to get a value from  select one choice (created by static view)

    Hi,
    Whene ever Iam trying to get value from select one choice which is created by static view iam getting only index.How to get the actual value in 11g .please help me anybody .Thanx in advance....
    Edited by: 874530 on Jul 22, 2011 11:05 PM

    Thnax for your quick reply..
    Iam using 11.1.1.3.0 version.
    My code is
    <af:selectOneChoice value="#{bindings.DenialLevel.inputValue}"
    label="#{bindings.DenialLevel.label}"
    required="#{bindings.DenialLevel.hints.mandatory}"
    shortDesc="#{bindings.DenialLevel.hints.tooltip}"
    id="soc2"
    valuePassThru="true"
    binding="#{backing_denialcomment.denialLevelList}">
    <f:selectItems value="#{bindings.DenialLevel.items}" id="si6"/>
    </af:selectOneChoice>
    and in bean am not able to get value of attribute .Iam getting only index...

  • How to get a value for Select One Choice in the backing bean

    Friends,
    Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
    Below is the my code snippet
    <af:selectOneChoice value="#{bindings.country.inputValue}"
    required="#{bindings.country.hints.mandatory}"
    shortDesc="#{bindings.country.hints.tooltip}"
    id="soc1" autoSubmit="true" valuePassThru="true"
    valueChangeListener="#{pageFlowScope.Bean.onValueChange
    <f:selectItems value="#{bindings.country.items}" id="si2"/>
    </af:selectOneChoice>
    Thanks in advance.

    check my other post at Re: Pass data from a variable to another page

  • How to get Weblogic's ClassLoader

    Hello,
    I am having problems getting custom Handlers to load using the Java 1.4 Logging
    API. Apparently, the custom Handlers are loaded using the System classpath, not
    the applications classpath. So, I am trying to create a custom ClassLoader with WebLogic's ClassLoader as it's parent. How do I get Weblogic's ClassLoader?
    Thank you,
    Josh

    register at elicense.bea.com and ask there.
    but, a license is a license, as long as the ipaddr is not restricted.
    Wayne
    Bora wrote:
    I downloaded an Evaluation copy from BEA but it expires in 30 days. The place I
    work has licenses for HPUX but I need to have a copy on my laptop for development
    & test.
    Thanks for help!
    Sincerely
    Bora

  • How to get majority of speed on one device

    I have multiple devices on the e1200 router and i am trying to figure out how to get majority of the speed on one device.
    And give all the other devices low speeds.
    help?
    Solved!
    Go to Solution.

    Hi Capo202, you can try to use the QoS settings of the router. Just access the setup page of the router and look for this page http://ui.linksys.com/files/E1200/2.0.00/qos.htm. Hope this can help you.

  • How to sort two different hierarchies in one dimension

    Does anyone know of a way to sort two different hierarchies in one dimension and still make drilling work correctly? We have two hierarchies in our item dimension; one called category and the other origin. Simplified, it looks like this:
    CATEGORY
    Hardware (100)
    ..PCs (100.100)
    ....PC 1
    ....PC 2
    ....PC 3
    ..Monitors (100.200)
    ....Monitor 1
    ....Monitor 2
    ....Monitor 3
    Software (200)
    ..Big (200.100)
    ....ERP package
    ....CRM package
    ..Small (200.200)
    ....Solitaire
    ....Mine Sweeper
    ORIGIN
    Vendor A (10)
    ..Site A1 (10.10)
    ....ERP package
    ..Site A2 (10.20)
    ....PC 1
    ....Monitor 3
    Vendor B (20)
    ..Site B1 (20.10)
    ....PC 2
    ....PC 3
    ....Monitor 1
    ....Monitor 2
    ....Solitaire
    ....Mine Sweeper
    ..Site B2 (20.20)
    ....CRM package
    We have numeric codes at each level above item which I represents the sort order (the number in parentheses at each level), and the items themselves should be sorted according to item number. I have implemented this (level code/item number) as an attribute in AWM making this the default sort order. However, as item is the lowest level in each hierarchy, I have only been able to list the items under the correct level in one hierarchy. As soon as I drill using the other hierarchy, the levels above item are sorted correctly, but the items appear at very odd places...
    The AWM documentation states that if default order is not selected on any attribute, hierarchies are sorted in the order they are created. Is there a way to control this order?
    Any input will be greatly appreciated!

    Hi,
    thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
    - LinkToAction 
    - LinkToURL    
    - FileDownload 
    - Button       
    - ToggleButton 
    best regards,
    Wenwen

  • How to set two different UIE in one cell in ALV table

    Hi all,
    I have a hierachy ALV table. For some reason I want to have two UI elements in one column. For example, the text and a menu next to the text. Is it possiable to do that?
    best regards,
    Wenwen

    Hi,
    thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
    - LinkToAction 
    - LinkToURL    
    - FileDownload 
    - Button       
    - ToggleButton 
    best regards,
    Wenwen

  • How to display two different parts of one image in two windows?

    hi everyone:) i need to display two different parts of one image in two windows. i have problem with displaying :/ because after creating windows there aren't any images :( i supose my initialization code of creating windows is incomplete, maybe i miss something or maybe there is some inconistency. graphics in java is not my strong position. complete code is below. can anybody help me?
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    import java.util.*;
    class ImgFrame extends JFrame
           private BufferedImage img;
           ImgFrame(BufferedImage B_Img, int x, int y, int w, int h)
                   super("d");
                   img=new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
                   img=B_Img.getSubimage(x, y, w, h);
           }//end ImgFrame construction
           public void paint(Graphics g)
                   Graphics2D g2D = (Graphics2D)g;
                   g.drawImage(img, 8, 8, null);
           }//end paint method
           public Dimension getPrefferedSize()
                   if(img==null)
                           return(new Dimension(100,100));
                   else
                           return(new Dimension(img.getWidth(null),img.getHeight(null)));
           }//end of GetPrefferedSize method
    }//end ImgFrame class
    public class TestGraph2D_03 extends Component
           static BufferedImage IMG;
           public static void Load()
                   try
                           IMG=ImageIO.read(new File("c:/test.bmp"));
                   catch(IOException ioe)
                           System.out.println("an exception: "+ioe);
                   }//end try catch
           }//end TestGraph2D_03 construction
           public static void main(String[] args)
                   Load();
                   ImgFrame F1 = new ImgFrame(IMG, 0, 0, 8, 8);
                   ImgFrame F2 = new ImgFrame(IMG, 8, 8, 8, 8);
                   F1.addWindowListener(new WindowAdapter()
                           public void windowClosing(WindowEvent e)
                                   System.exit(0);
                   F1.pack();
                   F1.setVisible(true);
                   F2.addWindowListener(new WindowAdapter()
                           public void windowClosing(WindowEvent e)
                                   System.exit(0);
                   F2.pack();
                   F2.setVisible(true);
           }//end of main method in TestGraph2D_01 class
    }//end of TestGraph2D_03 class

    Never override the paint(...) method of a Swing component.
    If you have a sub image then add the image to a JLabel and add the label to the GUI. No need for custom painting.

  • Magic Packet - How to get my router to send one

    I have the Quantum Gateway 1100 router.  I have a NAS Server on my home network.  The NAS server has the capability to Wake on LAN if the router can send that packet.  Can anyone tell me how to get the router to send the Wake-on-Lan packet to the server.  FIOS Tech Support is completely and totally useless.

    Hi,
    You can do a fresh installation using the installer bits available at the following link/location Download CS5.5 products
    For suites, you need to download and copy both .7z and .exe in the same folder. Clicking .exe will extract all relevant installer files. You can then install the suite. Use your existing Serial number when prompted.
    regards
    Aj

  • How to get 2 columns data in One Column

    Hi,
    I have requirement like below
    EName       Sal
    Smith         1000
    Scott          2000
    Miller          3000
    I want to display this two column like as follows
    Emp
    Smith
    1000
    Scott
    2000
    Miller
    3000
    Thanks & Regards,
    Hari Babu

    Hi,
    That's called Unpivoting.
    In Oracle 11.1 (and higher) you can use the SELECT  ... UNPIVOT feature. For details and examples, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#sthref6810
    In any version of Oracle, you can cross-join your table to any table or result set that has at least 2 rows, and use CASE (or DECODE) to get the results you want.
    Remember that a column can only have 1 datatype: it's impossible to have a column that's a VARCHAR2 on some rows, but a NUMBER on other rows.  You'll have to convert some data so that everything in the 1 output column has the same datatype.  There's no way to express 'Smith' as a NUMBER, but you can convert all the NUMBERs to strings.
    I hope this answers your question.
    If not, post  a little sample data (CREATE TABLE and INSERT statements), and also post the results you want from that data (if not what you posted already).
    Post your best attempt at a query.  Point out where it is getting the wrong results, and explain, using specific examples, how you get those results from the given data in those places.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How can I switch different JRE in one PC

    I am sorry to post it in this forum because I post almost the same in JRE forum but I don't get any help there for 2 days.
    My problem is that I have two systems to be used in different JRE enviroment.A system can only run in JRE 1.3 and B system can only run in JRE 1.5 enviroment.But I have to run both in one desktop(which use WinXP SP2),how can I do it . I tried some methods like below:
    Method 1:
    I Edited the registry using the cmd of regedit , edited some like these.But it did not work .
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaPlugin\CLSID]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]CurrentVersion="1.X"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] CurrentVersion="1.X"
    Method 2:This method is post in http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java as belows:
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    I tried this method but it did not work either.
    By the way , the method I use to check whether the switch of JRE versions is work correctly is this :
    1.Create a html file which contains OBJECT tag
    2.Double click the html file and then check the information in the java console in the window's taskbar.
    3.What the java console says is the JRE version I am using now
    Is this check method right?
    I found that many people confronted the same problem like me but they resolved it by the method of changing control panel, so I am doubt about the check method.
    Can anybody give me some help?
    Thanks a lot in advantage.

    Some additional information:
    I tried the method of changing control panel by JRE1.3's control panel to change current JRE enviroment to JRE1.3 (see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java), and I found that in the IE->Tool->Intenet Option->Detail Setting Panel the JRE version used in IE had been changed to JRE1.3 really.But when I connect System A(which use JRE1.3) use IE,the started java console is still JRE1.5 and some applets can't run in the enviroment.

Maybe you are looking for

  • Getting unexpected error message with exportpdf

    Export PDF is not working for me. says failed to export, unexpected error. tried several different pdf documents. not one would upload. Does this service actually work? and if so, how do I get it to work?

  • Photo to Itunes

    I recently updated my iTunes to the new Photo application on my Mac.  I have downloaded some new photos into Photo but they are not showing up in my iTunes library so that I can download them on my iPhone. 

  • Maximum Storage Size in cDOT 8.2 Simulator???

    Hi All, I'm trying to help my customer to preserve his 5 years of weekly Snapshots (!). Many of them are 32-Bit an are not out of age in the near future. He wants/needs to turn to 8.3 due to a very dirty SMB Bug (currently on cDOT 8.2P3) and because

  • DA0005 date format error after install CHF17

    Post Author: Akvile CA Forum: Deployment After installing chf17 I get the following error when trying to refresh reports, which require user to enter date in the condition prompt: DA0005 Connection or SQL sentence error Exception: DBD, [Sybase][ODBC

  • Blue print/realization

    Hi, There are CIT documents(probably called configuration input templates )  prepared in SAP. These documents involve the high level description of the scenario and then they consist of the configuration steps (menu path etc) and the data required to