activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r421556 - /incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
Date Thu, 13 Jul 2006 09:29:10 GMT
Author: aco
Date: Thu Jul 13 02:29:10 2006
New Revision: 421556

URL: http://svn.apache.org/viewvc?rev=421556&view=rev
Log:
Fix up classloader problems in Main class

Modified:
    incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java

Modified: incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java?rev=421556&r1=421555&r2=421556&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
(original)
+++ incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
Thu Jul 13 02:29:10 2006
@@ -200,7 +200,7 @@
 
             if(activeMQHome==null){
                 // guess from the location of the jar
-                URL url = Main.class.getClassLoader().getResource("org/apache/activemq/broker/Main.class");
+                URL url = Main.class.getClassLoader().getResource("org/apache/activemq/console/Main.class");
                 if (url != null) {
                     try {
                         JarURLConnection jarConnection = (JarURLConnection) url.openConnection();
@@ -213,9 +213,10 @@
             }
 
             if(activeMQHome==null){
-                activeMQHome = new File(".");
+                activeMQHome = new File("../.");
             }
         }
+        
         return activeMQHome;
     }
 }



Mime
View raw message