This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.virtalab.virtasys; | |
public class Shell { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String ip2name(String ip){ | |
InetAddress addr = null; | |
String host = null; | |
try{ | |
addr = InetAddress.getByName(ip); | |
host = addr.getCanonicalHostName(); | |
}catch(UnknownHostException e){ | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.virtalab.virtasys.net; | |
import net.virtalab.virtasys.Shell; | |
import java.net.InetAddress; | |
import java.net.UnknownHostException; | |
/** | |
* Does forward Name->IP resolve and backward IP->Name resolve | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.virtalab.dyn; | |
public class A2{ | |
public void m2(int n,String text){ | |
for(int q=0;q<n;q++){ | |
System.out.println(text); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int q=0;q<n;q++){ | |
//System.out.println(text); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------before javac------------- | |
Exception in thread "main" java.lang.ClassCircularityError: net/virtalab/dyn/A2 | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) | |
Good | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:634) | |
BYTES 312 | |
at net.virtalab.javainsider.MyClassLoader.loadClass(MyClassLoader.java:36) | |
NAME | |
at java.lang.ClassLoader.defineClass1(Native Method) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Class<?> loadClass(String name) throws ClassNotFoundException{ | |
File f = new File("C:/Code/dynamicJava/net/virtalab/dyn/A2.class"); | |
byte []b = new byte[(int) f.length()]; | |
super.loadClass("net.virtalab.dyn.A2"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ERROR] Failed to execute goal org.javalite:activejdbc-instrumentation:1.4.8:instrument (default) on project java-forum-ejb: Failed to add output directory to classpath: java.lang.ClassNotFoundException: org.javalite.activejdbc.Association -> [Help 1] | |
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.javalite:activejdbc-instrumentation:1.4.8:instrument (default) on project java-forum-ejb: Failed to add output directory to classpath | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) | |
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07-22 11:35:38.897 6055-6055/net.virtalab.android.locateme E/AndroidRuntime: FATAL EXCEPTION: main | |
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.virtalab.android.locateme/net.virtalab.android.locateme.activity.SettingsActivity}: java.lang.NullPointerException | |
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) | |
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) | |
at android.app.ActivityThread.access$600(ActivityThread.java:141) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) | |
at android.os.Handler.dispatchMessage(Handler.java:99) | |
at android.os.Looper.loop(Looper.java:137) | |
at android.app.ActivityThread.main(ActivityThread.java:5041) | |
at java.lang.reflect.Method.invokeNative(Native Method) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Java\JDK\bin\java -Dmaven.home=D:\Apps\Maven-3.0.5 -Dclassworlds.conf=D:\Apps\Maven-3.0.5\bin\m2.conf -Dfile.encoding=UTF-8 -classpath D:\Apps\Maven-3.0.5\boot\plexus-classworlds-2.4.jar org.codehaus.classworlds.Launcher --fail-fast --strict-checksums package | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for net.virtalab:stub-web:war:0.1 | |
[WARNING] 'version' contains an expression but should be a constant. @ net.virtalab:stub-web:${project.parent.version}, D:\home\asm\Code\JavaEE\stub\web\pom.xml, line 14, column 14 | |
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ net.virtalab:stub:0.1, D:\home\asm\Code\JavaEE\stub\pom.xml, line 75, column 19 | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for net.virtalab:stub-ejb:ejb:0.1 | |
[WARNING] 'version' contains an expression but should be a constant. @ net.virtalab:stub-ejb:${project.parent.version}, |
OlderNewer