Can't import package I've been through 10 guides on how to manage correct directory and packaging, and i just cant get it right.  i have my projects in C:\Users\gusta\Documents\Programmer    in the testprojektclass i have:  package testprojektclass;  public class myClass  {     private int age ;     public void setAge (int age)     {        this.age = age ;      } }   and in the testprojekt main:  import testprojektclass.*; public class importtest {    public static void main (String []args)    {        myClass youngfella = new myClass();        youngfella.setAge(14);    } }   I feel like i've tried everthing, but it keeps saying: package testprojektclass does not exist..
Help with packages in java - import does not work I'm a C++ developer - not a java developer, but have to get this code working...  I have 2 public classes that will be used by another product.  I used the package directive in each of the java files.    package com.company.thing;  class MyClass ...   When I try to compile a test app that uses that I add   import com.company.thing.*;   The javac compiler fails with errors about com.company does not exist.  (even if I compile it in the same directory as the class files I just made a package of)  I am sure I am doing something bone-headed and silly.  I've read the  pages and tried to set up a directory structure like /com/company/thing  etc, but either I have totally screwed it all up or am missing something else.  EDIT thanks for the suggestions - I had tried the classpath previously.  It does not help.  I tried compiling   javac -classpath &lt;parent&gt; client.java    and the result is:  package com.company does not exist   I have the code I want to import (the two java files) in \com\company\product.  I compile those fine.  (they contain MyClass) I even made a jar file for them.  I copied the jar file up to the parent directory.  I then did (in the parent directory with the client java file)   javac -cp &lt;jarfile&gt; *.java   the result is:  cannot access MyClass bad class file: MyClass.class(:MyClass.class) class file contains wrong class: com.company.product.MyClass Please remove or make sure it appears in the correct subdirectory of the classpath.   EDIT  I got the client code to compile and run if I used the fully qualified name for MyClass and compiled it in the parent directory.  I am totally confused now.    compiled with no classpath set - just   javac *.java    in the parent directory - and it worked fine.  I can get a test app to compile, but that is not going to cut it when i have to integrate it into the production code.  Still looking for help.  EDIT:  Finally - not sure why it didn't work before - but I cleaned up all the files all over the directory structure and now it works.    Thanks
How do I disable Aero Shake in Windows 7? I'm always accidentally minimizing most of my windows. This is really annoying. How do I disable Aero Shake? How can I recover from deleting the /usr/share/themes directory? Is it possible to be admitted to a masters in Germany with a 3-year bachelors from another country? How do I unit test code that includes a callout? Can HTML checkboxes be set to readonly? I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything.  I'd rather not use Disabled, since I want the checked check boxes to be submitted with the rest of the form, I just don't want the client to be able to change them under certain circumstances. How to know the usage of undocumented function like LinearAlgebra`BLAS? Get users to use the download button instead of right-click save As part of our system, a web application, we have an image viewer. Previously we always displayed the full resolution image but scaled down with CSS to fit the page. For performance reasons we now display a properly scaled version of the image with the option to download the full resolution image with a button under the image.  As part of the users' workflow, they sometimes need to download this full resolution image to submit to another system. The problem is that many users just right-click the image and press "save image as". This used to work fine but now it will instead provide them with a low resolution image. The users don't notice this and this causes problems further down the line. How can we force users away from this behaviour? Sure, we could tell them not to do it but that doesn't feel very scalable. My least bad idea so far is to hijack the right-click in the browser but this is A) not super nice UI and B) not sure to cover all cases.  In short: How can we get users to use the download button instead of saving the low-res thumbnail? Why don't files from Xbox 360 show up when USB drive is plugged into computer? I know standing in line to get a visa is never fun, but was wondering if any Americans had experience getting a standard tourist "L" visa in Hong Kong.   I'm leaving on a RTW trip in less than two weeks and I plan on being in China around June. So I either need to get a 6 or 12 month multi-entry visa before I leave the USA - which would entail booking all my flights and accommodation and securing an invitation letter in the next few days - or just fly to Hong Kong before going to China in June.   Hong Kong seems like the simplest answer, but China usually doesn't allow Americans to get visas outside of their home country (HK seems to be an exception). I just wanted to know if any Americans had done it successfully.  Update: The Chinese Visa Office in HK currently has this notice on their website: "If you don't reside or work in Hong Kong permanently, you are required to apply Chinese visa from the Embassy or Consulate-General of Peoples' Republic of China in your resident country." It seems practices may have changed. Any Americans with experience care to contradict this?  Link: How do I create a reflective white material? I'm pretty new to this and this is my first question here, any help would be greatly appreciated.  So basically what I want to achieve is a floor material as seen in this photo...    ...the reflections are very crisp but dim.  With a glossy shader I get the following results:    First picture: reflections are blurry  Second picture: roughness of the material looks right but reflection is bright red  Third picture: If tinted in any other color than white, it seems to produce the result I want. Reflection is sharp and gets tinted blue. What I need is the reflection to be tinted white.  Thanks for any help. How to create a file system as a non root user? I'd like to create a filesystem image as a non-root user, the problem I'm facing is that the way I'm currently doing it, it needs a mount and as a non-root can't do a mount.  This is what I'm now doing:  #!/bin/sh  IMG="app.ext4" LBL="PIHU_APP" MNT="/mnt/PIHU_APP" APP="/home/buildroot/board/arctura/PIHU_APP/application"  #64MB: dd if=/dev/zero of=$IMG bs=4096 count=16384  mkfs.ext4 $IMG e2label $IMG $LBL  mkdir -p $MNT mount -o loop $IMG $MNT cp -r $APP $MNT sync umount $MNT   I have full root access, so I can setup/prepare anything, but the script will be executed from a non-root account.  However, I have a feeling there may be a better way that might not even need mounting, but I'm not sure.. Can I safely charge my laptop with a non-standard, third-party charger? I have a Toshiba Satellite laptop. My charger has stopped working.  I have access to a Lenovo charger. Can I use this charger on my laptop? OS keyboard shortcuts conflict with apps keyboard shortcuts in GNOME 3 How can I encrypt and decrypt a string in C#? How to use a custom time in browser to test for client vs server time difference I'm trying to convert Shapefiles from the  website into a GeoJSON file for use with Google Maps API. I'm using QGIS to facilitate but I can't get the projection/coordinates right. So far I've tried Google Mercator (EPSG:900913) and WGS 84 (EPSG:4326) with no luck. I'm using the OpenLayers to verify results and it keeps placing Texas near the  Gulf of Guinea (0 lat, 0 lng). Can the notion of vector space or algebra over a field be meaningfully extended to fractional dimensions, so that for example $\mathbb{R}^{-2/3}$ makes sense? Has this been explored somewhere?  I know that super vector spaces can be thought of as one way of generalizing vector spaces to negative integer dimensions. Is there a similar concept for dimensions that are rational numbers? I'm not talking about Hausdorff dimension, because it doesn't allow for negative rationals, and I'm rather looking for extensions from a more algebraic point of view (dimension as the trace of the identity map), without recurring to a given metric. Debian users have a kind of "wayback machine":  , which is really great.  There are regressions sometimes, and if I don't have local deb package with old version, I'm getting sad sometimes. Having a wayback machine like this is very helpful.  I can't find analogue of it for Ubuntu. Have I missed it? How to check who owns the Slack's workspace? I'd like to check who owns (or at least some kind of public profile page) some workspace based on its subdomain (e.g. xyz.slack.com).  Is it possible? I've just installed Ubuntu and I need either video, wireless, or some sort of other manufacturer (non-opensource) driver. How can I run the tool that will fetch all of these for me? I'd like graphical instructions.  Related: