Classes are not visible to each other in a same package
Hi,
I have a question. How to make all classes in a same package visible to each other? For example, I have two classes below, T1.java and T2.java:
Below is T1.java
package thesis;
public class T1 {
public T1(){}
public void func1(){
System.out.println("This is in T1 class");
Below is T2.java
package thesis;
public class T2 {
public T2(){}
public void func2(){
System.out.println("This is in T2");
public static void main(String[] args){
T1 t1 = new T1();
t1.func1();
T2 t2 = new T2();
t2.func2();
I create a directory named thesis and put T1.java and T2.java under this folder. But when I try to compile T2.java, it give me error message, seems that T2.java cannot recognize T1.class.
So, can anyone solve this problem for me. Thanks in advance.
jmling
Make sure your classpath env variable is set correctly!
to compile these classes you should have something like:
C: > javac thesis\T2.java
if your classpath is set up correctly (default is CLASSPATH=.) then the above command should work.
If your still having problems, try:
C: > javac thesis\*.java
or compile T1.java first.
Anthony
Similar Messages
-
I have recently changed from Windows 7 desktop to a new iMac running Mavericks. I have chosen a wired keyboard as I like the usual Delete key function.
I cannot find out how to select several items which are not next to each other (e.g. words in Pages). The well known method in Windows, which is repeated in the the Apple Finder Help screen, does not work. Would be grateful for adviceHi JBowfin,
If I am understanding your question correctly, I believe that I have an article that will address this question for you:
Mac OS X 10.0: Use Command Key to Select Multiple Items in List and Column Views
http://support.apple.com/kb/TA20396
Take care, and thanks for visiting the Apple Support Communities.
-Braden -
NetWeaver XI components are not talking to each other
I am an XI consultant, i dont have proper Basis support at my client, since they are fond of only ABAP stack.
They installed netweaver xi from the market place.
I am unable to import any SWCV (even SAP BASIS) from SLD to IR and IR menu is blank.
Unable to find list of adapters in Integration Directory.
RWB -component monitoring is blank .
SLD- creation of products,SWCV,Technical Sys,Buss Sys is possible.
In conclusion i can say that they all are not co-operative and not talking to each other
And also i want to know wheather xi 7.0 is compatable to databases Oracle 8.0.3 and Oracle 8.0.4Hi Venkata,
Does the XI post Installation steps done by the team or not? It seems that there is some steps missing while doing the XI installation. Talk to to the BASIS team and tryu to find out the solution.
>>> Unable to find list of adapters in Integration Directory.
Check thisblog for it:
/people/venugopalarao.immadisetty/blog/2007/03/15/adapter-engine-cannot-be-found-in-integration-directory
>>> And also i want to know wheather xi 7.0 is compatable to databases Oracle 8.0.3 and Oracle 8.0.4
In my view, yes. XI is compatible with all the versions of Oracle Database above version 8 but never tried it.
Reward points if helpful. *
Regards,
Subhasha Ranjan -
How to select multiple nodes, which are not next to each other, in a tree?
The following code suppose to allow user select any combination of nodes (because of DISCONTIGUOUS_TREE_SELECTION), however, I can only select nodes which are next to each other. Can some one told me how to make this DISCONTIGUOUS_TREE_SELECTION work?
Thank you very much!
import javax.swing.*;
import javax.swing.tree.*;
public class TestTree extends JFrame {
public TestTree() {
super();
setBounds(0,0,500,500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTree tree = new JTree();
getContentPane().add(tree);
TreeSelectionModel model = new DefaultTreeSelectionModel();
model.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
tree.setSelectionModel(model);
public static void main(String [] args) {
TestTree test = new TestTree();
test.show();In Windows you hold down the Ctrl key while clicking on the nodes you want to select. Don't know the equivalent in other environments.
-
Each device (pc + android phone) is logged into Sync, but there is no sync sharing happening
<sub>edit: removed personal information for your protection. (philipp)</sub>HI msknack,
Thank you for your question. I understand that both of the devices are not syncing to match. Can you please check the following:
*Are they on the same version of sync? (Android account should not list Firefox Sync (deprecated))
*Are the managed items checked to be synced in the sync options?
Posting back could help out other users as well. -
Ios phone and Ipad are not syncing with each other
Both devices are set up to sync with same icloud account. ios phone is sending imessages from my email address, and when i try switching it in settings, it wont appear on my ipad messages stream.
Logged on to my iclous account and none of my phots/info is appearing there. made sure it is all set up to be backed up to icloud, but still not there/ It seems like the devices are not communicating with icloud...HI msknack,
Thank you for your question. I understand that both of the devices are not syncing to match. Can you please check the following:
*Are they on the same version of sync? (Android account should not list Firefox Sync (deprecated))
*Are the managed items checked to be synced in the sync options?
Posting back could help out other users as well. -
How do you setup a server to use multiple DNS servers that are not connect to each other?
Is there a way to setup a server that connects to two different domains to use the proper DNS server for name resolution?
Let say there are two DCs: serverA.subdomaina.domain.com and serverB.subdoamainb.domain.com. The domains are independent and not connected. Now you need a common server that is connected to both and need to resolve names from both
domains.
Is this possible?
I have setup a server in a workgroup. One NIC has the subdomaina.domain.com connection specific suffix and the other nic has the subdomainb.domain.com. Each NIC has the DNS server listed for the domain it is connected to.
This configuration will resolve FQDNs of one domain but not the other. This I believe is due to the fact the server only querys one DNS server and doesn't try the other DNS server.
Is there any way to make the server try another DNS server, if the first one doesn't have the entry?Hi,
Thank you for posting in Windows Server Forum.
Here adding to the words of “Tim”, a forwarder is a DNS server on a network used to forward DNS queries for external DNS names to DNS servers outside of that network. You can also forward queries according to specific domain names using conditional forwarders.
A DNS server on a network is designated as a forwarder by having the other DNS servers in the network forward the queries they cannot resolve locally to that DNS server. You can refer information regarding forwarders and how to configure from beneath link.
Understanding forwarders
http://technet.microsoft.com/en-us/library/cc782142(v=ws.10).aspx
Configure a DNS Server to Use Forwarders
http://technet.microsoft.com/en-us/library/cc754941.aspx
Hope it helps!
Regards. -
They Are Not Talking To Each Other
I just bought a new iMac. With the old iMac, every time that iTunes was launched, the computer would sync with Apple TV. This computer does not sync with the launching of iTunes. I found this out when I rented a movie last night and tried to watch it. It was there on the iMac but it did not show up on Apple TV. It was only then that I realized that the syncing was no longer happening. How can I get it to sync again?
Cheers
JohnLet me just backtrack a bit here.
So I'm sitting on my sofa in front of the TV set and I fire up Apple TV.
From the Menu I choose
Settings
Computer
Add Shared iTunes Library
Connect to iTunes Window comes up with the following message
to stream iTunes content to your AppleTV, open iTunes and select AppleTV from the Devices list. You will need to enter this passcode
and then you're given a 5 digit code to enter. At this point I rush upstairs where my iMac is, open iTunes and yes, there is the Apple TV in the Devices list but there is nowhere that I can see for me to enter the 5 digit code. Ideally I should be seeing the AppleTV icon with the Click to Set up" next to it in the list as in these instructions
but all I see is a plain Apple TV icon so I am stymied. Maybe you should be renting movies via AppleTV and not on the iMac although I would have thought that with all the interconnectivity, a rental on any device can be viewed on any other. -
Tags are not transferring over to other computer using same login
I use two computers to access the same email account on Thunderbird. I have the same tags set up on both. For over a year now I have been able to tag an email on one computer and it will appear tagged on the other computer as well. However, just recently this has stopped happening. The tags I have applied on one computer no longer show up on the other computer. Any ideas on how to fix it?
If you create a new folder with one message, then tag it, does the tag appear on the other computer? Since tags are stored in the folder index files, the non-working folders may have corrupted indexes (which might be fixed by right-clicking the folder, Properties, Repair Folder). Backup first in case the Repair function misbehaves.
-
PCs connecting to ME3400 Switch not pinging to each other!!
hi,
We have a new ME-3400-24TS-A Switch.Its a 24 10/100 Mbps switch.But when we connect the two PCs on its any of the two ports ,they are not pinging to each other.Both the PCs are in the same Network.
basic switching is not happening.Kindly help me!!The IOS version is :S340XBT-12225SEG
Cisco ME 340X SERIES IOS METRO BASE W/O CRYPTO TARThe ports in the same vlan don't do local switching per default on a ME3400. You have to enable local switching for a vlan with the commands "vlan xxx" and "uni-vlan community".
But, only 8 ports can be in the same vlan. So, maybe you have choose the wrong switch if you need a normal L2 switch. Normally, in Metro Ethernet you don't want local switching between user ports.
I hop this helps. Please rate all posts.
Cheers
Rene -
How to display items with pk/fk relationship not equal to each other
I want to show that the values of the same field are not equal to each other
In forms, how can I write below:
If :blockB.chk_bx = 'N' then
:blockA.rec_id <> :blockB.rec_id;
also tried :blockA.rec_id != :blockB.rec_id; but get error message. Assume I cannot use the inequality sign.
The rec_id in blockname A and B have a pk/fk relationship.
Please help.I'm sorry i didn't understand your requirement.
I want to show that the values of the same field are not equal to each otherSo you have an item in block A and an item in block B and you want to indicate that the value for these two items are different? How do you want to indicate that? Do you want to mark the field with some color? Do you want to have a checkbox next to it?
In forms, how can I write below
If :blockB.chk_bx = 'N' then
:blockA.rec_id !=:blockB.rec_id;I assumed the != in the statement for its missing in your post. What do you expect the statement to do? Your statement is a comparison outside an IF or CASE-statement, maybe you want to do some
IF :blockA.rec_id !=:blockB.rec_id THEN
dosomestuff;
END IF;
The rec_id in blockname A and B have a pk/fk relationshipSo, did you connect the two block with a relation in forms? If yes, the values in the two blocks should always match.
Perhaps cou could give some details about your requirement. -
VM Machines not communicating with each other on Hyper-V 2012
In Hyper-V 2012 on Server 2012 I have created two VM's Server 2008 64-bit & Server 2012 64-bit.
The problem is both VM's are not communicating with each other.
Regards
Ganesh ParteHello,
seems this belongs to the Hyper-V networking configuration settings. Please ask this in http://social.technet.microsoft.com/Forums/en-US/home?forum=winserverhyperv
and also describe how you have the network settings configured in the Hyper-V MMC.
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://blogs.msmvps.com/MWeber
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
Twitter: -
In PC I have changed the default app location from (c:/users/username/My Music/iTunes) to other (d:iTunes) and copied the previous content to new location and changed the Default location in Edit preference. Now in iTunes, my previous apps are not visible. Is there any solution to this?
wjosten - thanks very much for the detailed instructions. I'll try this as soon as I get my replacement and it looks like you'll probably end up getting the green tick
-
My other mail boxes are not visible in mail after upgrading to Mountain Lion
my other mail boxes are not visible in mail after upgrading to Mountain Lion
In the mailbox panel move your cursor slowly down the right hand side . Should reveal show and hide.
-
titles are not visible, they show up on timeline as a grey box no text does not effect other events or projects. could this have something to do with motion
Without seeing the timeline it sounds as if they've been off. Maybe you pressed the V or the role is switched off in the timeline index.
Maybe you are looking for
-
AND/OR operator while filtering query results
Hello all, This sounds like very simple requirement but i was not able to show end user a way to do it. This is my requirement. Employee Department A ACC B ACC R&D C R&D
-
HT1198 unable to share libraries with multiple users
I read thru and followed directions on how to share using a disk image, I was able to copy my iphoto library to it and select it to open on my account, I set permissions to read and write for both other users and ignored ownership on that driver. it
-
I want to buy a 15 inch retina MacBook Pro what configruation do I need?
I would like to buy a 15 inch MacBook Pro with Retina display but can't decide on a confiruation to get. Here are the things I do on my computer Use all of the pre-loaded apps Mail, Safari, etc. Download more from the Mac App Store Import pictures fr
-
In FAGLL03 GL related Vendor name display
Hi When i execute report in FAGLL03 for retention account, is it possible to display GL related vendor name feild in FAGLL03 report?
-
"Data Samples Overwritten before being Read" Error?
I have been working on this issue for over 3 weeks, I am getting an overflow error (Data overwritten before read), and I can't seem to get rid of it. I tried sevral suggestions, but still can't get rid of it. I am using two counters Gated by PFI7 and