ddusnoki / jvmtop

Automatically exported from code.google.com/p/jvmtop
0 stars 0 forks source link

Build Error #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Guys,

I am more interested in jvmtop I am trying to build Error.

Please share jar jvmtop.

root@dvcliftonhera122:~/jvmtop/jvmtop# ant -buildfile build.xml 
Buildfile: /root/jvmtop/jvmtop/build.xml

init:

compile:
    [javac] Compiling 14 source files to /root/jvmtop/jvmtop/build
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/monitor/VMInfo.java:43: package com.sun.tools.attach does not exist
    [javac] import com.sun.tools.attach.AttachNotSupportedException;
    [javac]                            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/ProxyClient.java:89: warning: sun.rmi.server.UnicastRef2 is internal proprietary API and may be removed in a future release
    [javac] import sun.rmi.server.UnicastRef2;
    [javac]                      ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/ProxyClient.java:90: warning: sun.rmi.transport.LiveRef is internal proprietary API and may be removed in a future release
    [javac] import sun.rmi.transport.LiveRef;
    [javac]                         ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:41: package sun.jvmstat.monitor does not exist
    [javac] import sun.jvmstat.monitor.HostIdentifier;
    [javac]                           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:42: package sun.jvmstat.monitor does not exist
    [javac] import sun.jvmstat.monitor.MonitorException;
    [javac]                           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:43: package sun.jvmstat.monitor does not exist
    [javac] import sun.jvmstat.monitor.MonitoredHost;
    [javac]                           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:44: package sun.jvmstat.monitor does not exist
    [javac] import sun.jvmstat.monitor.MonitoredVm;
    [javac]                           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:45: package sun.jvmstat.monitor does not exist
    [javac] import sun.jvmstat.monitor.MonitoredVmUtil;
    [javac]                           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:46: package sun.jvmstat.monitor does not exist
    [javac] import sun.jvmstat.monitor.VmIdentifier;
    [javac]                           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:47: warning: sun.management.ConnectorAddressLink is internal proprietary API and may be removed in a future release
    [javac] import sun.management.ConnectorAddressLink;
    [javac]                      ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:49: package com.sun.tools.attach does not exist
    [javac] import com.sun.tools.attach.AgentInitializationException;
    [javac]                            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:50: package com.sun.tools.attach does not exist
    [javac] import com.sun.tools.attach.AgentLoadException;
    [javac]                            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:51: package com.sun.tools.attach does not exist
    [javac] import com.sun.tools.attach.AttachNotSupportedException;
    [javac]                            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:52: package com.sun.tools.attach does not exist
    [javac] import com.sun.tools.attach.VirtualMachine;
    [javac]                            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:53: package com.sun.tools.attach does not exist
    [javac] import com.sun.tools.attach.VirtualMachineDescriptor;
    [javac]                            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/monitor/VMInfo.java:216: cannot find symbol
    [javac] symbol  : class AttachNotSupportedException
    [javac] location: class com.jvmtop.monitor.VMInfo
    [javac]       throws AttachNotSupportedException, IOException, NoSuchMethodException,
    [javac]              ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:318: cannot find symbol
    [javac] symbol  : class VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]   public static LocalVirtualMachine getDelegateMachine(VirtualMachine vm)
    [javac]                                                        ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/monitor/VMInfo.java:246: cannot find symbol
    [javac] symbol  : class AttachNotSupportedException
    [javac] location: class com.jvmtop.monitor.VMInfo
    [javac]           && e.getCause() instanceof AttachNotSupportedException)
    [javac]                                      ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/ProxyClient.java:218: warning: sun.rmi.server.UnicastRef2 is internal proprietary API and may be removed in a future release
    [javac]         if (ref.getClass() != UnicastRef2.class) {
    [javac]                               ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/ProxyClient.java:220: warning: sun.rmi.server.UnicastRef2 is internal proprietary API and may be removed in a future release
    [javac]                 "Expecting a " + UnicastRef2.class.getName() +
    [javac]                                  ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/ProxyClient.java:226: warning: sun.rmi.transport.LiveRef is internal proprietary API and may be removed in a future release
    [javac]         LiveRef liveRef = ((UnicastRef2)ref).getLiveRef();
    [javac]         ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/ProxyClient.java:226: warning: sun.rmi.server.UnicastRef2 is internal proprietary API and may be removed in a future release
    [javac]         LiveRef liveRef = ((UnicastRef2)ref).getLiveRef();
    [javac]                             ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:197: cannot find symbol
    [javac] symbol  : class MonitoredHost
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     MonitoredHost host;
    [javac]     ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:201: cannot find symbol
    [javac] symbol  : class HostIdentifier
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]       host = MonitoredHost.getMonitoredHost(new HostIdentifier((String) null));
    [javac]                                                 ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:201: cannot find symbol
    [javac] symbol  : variable MonitoredHost
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]       host = MonitoredHost.getMonitoredHost(new HostIdentifier((String) null));
    [javac]              ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:208: cannot find symbol
    [javac] symbol  : class MonitorException
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     catch (MonitorException mx)
    [javac]            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:226: cannot find symbol
    [javac] symbol  : class MonitoredVm
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]           MonitoredVm mvm = host.getMonitoredVm(new VmIdentifier(name));
    [javac]           ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:226: cannot find symbol
    [javac] symbol  : class VmIdentifier
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]           MonitoredVm mvm = host.getMonitoredVm(new VmIdentifier(name));
    [javac]                                                     ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:228: cannot find symbol
    [javac] symbol  : variable MonitoredVmUtil
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]           name = MonitoredVmUtil.commandLine(mvm);
    [javac]                  ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:229: cannot find symbol
    [javac] symbol  : variable MonitoredVmUtil
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]           attachable = MonitoredVmUtil.isAttachable(mvm);
    [javac]                        ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:230: warning: sun.management.ConnectorAddressLink is internal proprietary API and may be removed in a future release
    [javac]           address = ConnectorAddressLink.importFrom(pid);
    [javac]                     ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:248: cannot find symbol
    [javac] symbol  : class VirtualMachineDescriptor
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     List<VirtualMachineDescriptor> vms = VirtualMachine.list();
    [javac]          ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:248: cannot find symbol
    [javac] symbol  : variable VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     List<VirtualMachineDescriptor> vms = VirtualMachine.list();
    [javac]                                          ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:249: cannot find symbol
    [javac] symbol  : class VirtualMachineDescriptor
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     for (VirtualMachineDescriptor vmd : vms)
    [javac]          ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:260: cannot find symbol
    [javac] symbol  : class VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]             VirtualMachine vm = VirtualMachine.attach(vmd);
    [javac]             ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:260: cannot find symbol
    [javac] symbol  : variable VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]             VirtualMachine vm = VirtualMachine.attach(vmd);
    [javac]                                 ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:266: cannot find symbol
    [javac] symbol  : class AttachNotSupportedException
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]           catch (AttachNotSupportedException x)
    [javac]                  ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:307: cannot find symbol
    [javac] symbol  : class VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]         VirtualMachine vm = VirtualMachine.attach(name);
    [javac]         ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:307: cannot find symbol
    [javac] symbol  : variable VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]         VirtualMachine vm = VirtualMachine.attach(name);
    [javac]                             ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:337: cannot find symbol
    [javac] symbol  : class VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     VirtualMachine vm = null;
    [javac]     ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:341: cannot find symbol
    [javac] symbol  : variable VirtualMachine
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]       vm = VirtualMachine.attach(name);
    [javac]            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:343: cannot find symbol
    [javac] symbol  : class AttachNotSupportedException
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     catch (AttachNotSupportedException x)
    [javac]            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:374: cannot find symbol
    [javac] symbol  : class AgentLoadException
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     catch (AgentLoadException x)
    [javac]            ^
    [javac] /root/jvmtop/jvmtop/src/com/jvmtop/openjdk/tools/LocalVirtualMachine.java:380: cannot find symbol
    [javac] symbol  : class AgentInitializationException
    [javac] location: class com.jvmtop.openjdk.tools.LocalVirtualMachine
    [javac]     catch (AgentInitializationException x)
    [javac]            ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 36 errors
    [javac] 8 warnings

BUILD FAILED
/root/jvmtop/jvmtop/build.xml:33: Compile failed; see the compiler error output 
for details.

we are using ubutnu 12.04 amd system.

root@dvcliftonhera122:~/jvmtop/jvmtop# java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

Original issue reported on code.google.com by bugcy...@gmail.com on 8 Sep 2013 at 7:24

GoogleCodeExporter commented 9 years ago
Hi,

I've only tested compiling jvmtop against an unmodified Oracle JDK 6 so far.
From your java -version output, it looks like you're also trying to compile 
against an oracle JDK 6. However, it might be the case that your SDK 
installation is missing some files.

Can you please 
1. check your JDK path (type -p javac) if it points to an oracle JDK, too.
2. list all files within the ../lib directory (relativly to the path of the 
javac binary)?

Original comment by patric.r...@gmail.com on 8 Sep 2013 at 10:54

GoogleCodeExporter commented 9 years ago
Closing due to missing information. If you're still encountering this issue, 
file a new one and refer to this.

Original comment by patric.r...@gmail.com on 19 Aug 2014 at 8:27