Problem puting class into a package

I have the following two *.java files:
Chess.java
package chessgame;
public abstract class Chess{
Rook.java
package chessgame;
class Rook{
Here's what I got from jdk:
G:\java\ChessGame>javac Chess.java
G:\java\ChessGame>javac Rook.java
Rook.java:3: cannot resolve symbol
symbol : class Chess
location: class chinesechess.Rook
public class Rook extends Chess{.......
What may be wrong? I do put the "package chessgame;" on the beginning of each *.java fiels.

G:\java\ChessGame>javac Chess.java
G:\java\ChessGame>javac Rook.java
Rook.java:3: cannot resolve symbol
symbol : class Chess
location: class chinesechess.Rook
public class Rook extends Chess{.......
Actually, to do it right you should be compiling with
G:\java\>javac chessgame/Chess.java
and
G:\java\>javac chessgame/Rook.java
(or alternatively G:\java\chessgame>javac -d . *.java)
This is explained with more detail in the document [url http://java.sun.com/j2se/1.4/docs/tooldocs/windows/classpath.html]Setting The Classpath.
Also, your package is called "chessgame" but the directory name seems to be "ChessGame", that might cause problems because java is case sensitive...
Your classpath should be fine if you haven't touched it, but if you are in doubt use "-classpath ." in the above commands.

Similar Messages

  • [svn:osmf:] 14230: PARB changes: Move the dynamicstreaming classes into net package.

    Revision: 14230
    Revision: 14230
    Author:   [email protected]
    Date:     2010-02-17 17:34:32 -0800 (Wed, 17 Feb 2010)
    Log Message:
    PARB changes: Move the dynamicstreaming classes into net package.  Rename a handful of them.  Hide a handful of APIs.
    Modified Paths:
        osmf/trunk/apps/samples/framework/DynamicStreamingSample/src/DynamicStreamingSample.mxml
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/AllExamples.as
        osmf/trunk/framework/OSMF/.flexLibProperties
        osmf/trunk/framework/OSMF/org/osmf/elements/VideoElement.as
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/ManifestParser.as
        osmf/trunk/framework/OSMF/org/osmf/events/BeaconEvent.as
        osmf/trunk/framework/OSMF/org/osmf/events/DRMEvent.as
        osmf/trunk/framework/OSMF/org/osmf/media/DefaultMediaFactory.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamLoadTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/DownloadRatioRule.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingNetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/DroppedFramesRule.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/InsufficientBandwidthRule.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/InsufficientBufferRule.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/SufficientBandwidthRule.as
        osmf/trunk/framework/OSMF/org/osmf/plugin/PluginManager.as
        osmf/trunk/framework/OSMF/org/osmf/utils/Version.as
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/f4mClasses/TestManifestParser.as
        osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayerWithDynamicStreamingVideoElem ent.as
        osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayerWithDynamicStreamingVideoElem entSubclip.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestNetStreamUtils.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestDownloadRatioRule.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/rtmpstreaming/TestDroppedFramesRule.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/rtmpstreaming/TestInsufficientBandwidthRule.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/rtmpstreaming/TestInsufficientBufferRule.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/rtmpstreaming/TestSufficientBandwidthRule.as
        osmf/trunk/framework/OSMFTest/org/osmf/plugin/TestPluginManager.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicNetStreamSwitchManager.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicSwitchingRule.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/NetFactory.as
        osmf/trunk/libs/adobe/NetMocker/.flexLibProperties
        osmf/trunk/plugins/SMILPlugin/org/osmf/smil/media/SMILMediaGenerator.as
    Added Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/DynamicStreamingItem.as
        osmf/trunk/framework/OSMF/org/osmf/net/DynamicStreamingResource.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamDynamicStreamTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamMetricsBase.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamSwitchManager.as
        osmf/trunk/framework/OSMF/org/osmf/net/SwitchingRuleBase.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStreamMetrics.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/RTMPDynamicStreamingNetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/RTMPNetStreamMetrics.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestDynamicStreamingItem.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestDynamicStreamingResource.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestNetStreamDynamicStreamTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestNetStreamSwitchManager.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/rtmpstreaming/TestRTMPDynamicStreamingNetLoade r.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockHTTPNetStreamMetrics.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockNetStreamMetricsBase.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockRTMPDynamicStreamingNetLoader.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockRTMPNetStreamMetrics.as
    Removed Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/dynamicstreaming/
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPMetricsProvider.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/RTMPMetricsProvider.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/dynamicstreaming/
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockDynamicStreamingNetLoader.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockHTTPMetricsProvider.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockMetricsProvider.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockRTMPMetricsProvider.as

    Stop it
    Sent from my I phone

  • Question regarding palcing cache related classes into a package

    Hi all,
    I have a question regarding placing classes into packages. Actually I am writing cache feature which caches the results which were evaluated previously. Since it is a cache, I don't want to expose it outside because it is only for internal purpose. I have 10 classes related to this cache feature. All of them are used by cache manager (the manager class which manages cache) only. So I thought it would make sense if I keep all the classes into a separate package.
    But the problem I have is, since the cache related classes are not exposed outside so I can't make them public. If they are not public I can't access them in the other packages of my code. I can't either make it public or private. Can someone suggest a solution for my problem?

    haki2 wrote:
    But the problem I have is, since the cache related classes are not exposed outside so I can't make them public. If they are not public I can't access them in the other packages of my code.Well, you shouldn't access them in your non-cache code.
    As far as I understand, the only class that other code needs to access is the cache manager. That one must be public. All other classes can be package-private (a.k.a default access). This way they can access each other and the cache manager can access them, but other code can't.

  • Problem Accessing Class in my package from jsp file

    Hi,
    I am using Apache tomcat server and i have made package which contains a class for database connection. I have imported this package in my jsp file but when i run the jsp tomcat gives the class not found exception. i have placed the jsp file in /webapps/my_project/ folder and the package in the /webapps/my_project/WEB-INF/classes/ folder.
    Still its not working.
    Please help me out!!!!!!!!

    hi,
    Thanks for ur reply. You have guessed it right, i dont have a .jar file its a .class file in a package subfolder. I have tried out ur suggestion but it didnt work. The following error i shown when i run it.
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\Apache Tomcat 4.0\work\localhost\_\College\test$jsp.java:4: Package college_lib not found in import.
    import college_lib.*;
    ^
    1 error, 1 warning
    Here, College_lib is the package name which contains the class my class file
    Is there any problem with my Apache Tomcat4.0 or any other thing.
    Message was edited by:
    Despo

  • Moving a class into a package?

    hi,
    is there a way through which I can move an existing class inside a newly created package?
    Best Regards,
    Tarun

    Hi Tarun,
      Go to se80.
    Give your classname by chosing the Class/Interface from the list box.
    Then right click on the class->Other Functions->Change Package Assignment.
    Then click on the pecil button to go to the cjhange mode. Give the name of the new package in place of the old.
    Regards,
    Ravi

  • Problem with JSP using bean packaged in jar file

    Hi,
              I am trying to use a java bean in a jsp file. The java bean is packaged
              into a jar file. I am getting class not found compilation error. If the
              bean remains to be a seperated class file, everything work well.
              Does anyone know how I can use bean in a jar file within jsp , i.e. to
              allow the bean to be found during compilation ?
              Thanks,
              Terence.
              [email protected]
              

    Jacek,
              Thanks for replying.
              My JSP's are just files in my document root . However, I found a solution to
              my
              problem. That is to have the jar file defined in my weblogic.class.path. I may
              have missed some files in my original jar file which causes my problem.
              Mayby I should package everything into a web application for deployment. That
              will be my next step.
              Thanks anyway.
              Terence.
              Jacek Laskowski wrote:
              > Terence Lai wrote:
              > >
              > > Hi,
              > >
              > > I am trying to use a java bean in a jsp file. The java bean is packaged
              > > into a jar file. I am getting class not found compilation error. If the
              > > bean remains to be a seperated class file, everything work well.
              >
              > How do you use the JSP file ? Is it a part of web application ? If so,
              > the bean jar package should be located in WEB-INF/lib directory. It's
              > also recommended to put the bean class into a package, so it's not in
              > 'unnamed' package, and <jsp:useBean> can find it.
              >
              > >
              > > Does anyone know how I can use bean in a jar file within jsp , i.e. to
              > > allow the bean to be found during compilation ?
              >
              > see above.
              >
              > > Terence.
              >
              > Jacek Laskowski
              > HP Consulting
              

  • Importing a .class file into my package?

    Hi. I'm making a java program but I need to use an external .class file to get variables and use methods from. Is it possible to "import" a class file into my package to be able to do so?
    Thanks

    Basically, for our last project we created a class
    that held the information about a year: how many days
    were in a month, how many months were in a year, etc.
    etc. For this project, we'll be having to use that
    same class to make a GUI calendar. Our teacher
    provided a class which he compiled for us to use in
    our projects incase our previous class had some flaws
    in it, which mine did. Unfortunately, it's in .class
    format and I don't know how to use it in my package!That's going to be a problem then. I would assume that it is going to have an API like your old one did. Same name and same methods etc. So do you know what the name and method signatures of your class were supposed to be?

  • Import my own class into servlet problem

    Hello, everyone.. I fail to import java classes that i create myself into the servlet. I wonder what is the problem. I would feel grateful if anyone can solve my problem. I noe that if it is in the package let say myclass , C:\jakarta-tomcat-4.1.29\webapps\lis\WEB-INF\classes\myclass. It will be
    package myclass;
    import myclass.*;
    But, I put all my class file into below directory not in a package.
    C:\jakarta-tomcat-4.1.29\webapps\lis\WEB-INF\classes
    and i wish to include let say DBManager.class file into Login.class file which in in the same directory as above. What is the correct code i should put? Thanks for anyone who willing to help me out ~

    You don't need to import classes from the same package. They are automatically available in the same namespace. Just use them.
    package myclasses;
    import myclasses.*;  // this line does nothing
    import myctherclasses.*;  // this line is necessary to use classes from another package.Having said that though, it is always preferable to put your classes in a package. Classes in the "unnamed" package are not guarunteed to be available anymore.
    Particularly servlet classes which are not in a package aren't found by Tomcat.
    In short: always put your classes into packages.
    Cheers,
    evnafets

  • How to import outer classes into package inner classes?

    Hi, hope you all under stand my question. Sample as below:
    import A.*;
    public class ClassA{
        public ClassA{
            ClassB.CA = this;
    package A;
    public class ClassB{
         public static ClassA CA;  //Problem Here
    }As the sample above, i cannot declare public static ClassA CA in ClassB. Any way I can solve this? Can I import ClassA into package A? Thanks.
    Edited by: ocboon8 on Apr 6, 2008 6:50 AM

    A class that is in a package cannot access a class that is not in a package.
    db

  • How to organize j2me classes into packages?

    Hello!
    I'm using Wireless Toolkit 2.5.2 and I have got a question about it.
    Does anybody know, how to organize j2me classes into packages?
    As far as I know, all source files should be placed inside WTK_home_directory\apps\my_project\src folder.
    Although it is possible to create arbitrary folder structure (for example, src\com\my_company\www\my_package) and successfully compile the project,
    it's not possible to run it on the emulator or any target device. Trying to do it, I get ClassNotFound exception.
    It's not surprisingly, because virtual machine on the device doesn't know, where to look for desired classes.
    So the question is how to add new entries to the device classpath (of course, if it exists)?
    And is it possible to configure it through application descriptor (jad) file somehow?
    Any ideas, references, descriptions?
    Thanks in advance,
    A.

    Hello!
    So, I have found the solution and this question is not actual any more.
    The solution is quite simple - you have to properly configure application jad-file.
    It can be done like this (in ktoolbar):
    1. Open project settings from main menu (Project - Settings).
    2. Then go to MIDlets tab.
    3. There you have to change value in "*class*" column (for example, to smth like this - com.my_company.www.my_package.my_midlet_class_name).
    4. Press Ok button.
    Having done these steps, you will be able to have any package structure you need
    (because after it AMS on the device will know where to look for your application class files).
    A.

  • Problem accessing classes when moved into another jar

    Hi,
    I have written some classes and want to put them in an external jar
    as a library. However, when I do this, I have to include the full path
    for them to work- what am I doing wrong? I am using JBuilder6
    Example:-
    I have a class called LogWriter in package org.MyClasses.utils which I
    am using in a class in another package (com.MyCode). If they are all in
    my src directory it works fine and I import org.MyClasses.utils
    If I compile org.MyClasses into a jar and add the jar as a library, I can
    see the classes with CodeInsight (so I know they are there). However, the line
    Logwriter.writeLog() ; (call to static method), which used to work, now only works
    if I change it to org.MyClasses.utils.Logwriter.writeLog() ;
    Any advice?
    MArk

    If the class was called MyWriter and is in org.MyClasses.utils, I have to replace all instances of MyWriter with org.MyClasses.utils.MyWriter.
    MyWriter has not altered in any way. It's now compiled separately and put into another jar rather than all classes being comipled at the same time.
    MArk

  • Weird Can not access class from outside package problem

    Hi, I have this problem and it seems the error message is very clear what the problem is but I did make the GeneralTestResult class PUBLIC already. What could be wrong? I did search for it but this is too general and didn't find any solution. Anyone can point out the problem? TIA.
    public abstract class GeneralTestResult
      public static int FAILING_THRESHOLE = 25;
      public abstract String getTestName();
      public abstract boolean isPassed();
      public abstract int getLeftEyeResult();
      public abstract int getRightEyeResult();
      public abstract Calendar getTestDate();
    // in a different file
    package VisionSaver.Tests.TestResults;
    import java.util.*;
    public class AcuityORContrastTestResult extends GeneralTestResult
      private String m_testName;
      private int m_leftEyeVision, m_rightEyeVision;
      private Calendar m_testDate;
    // in a different file
    package VisionSaver.Tests;
    import VisionSaver.Tests.TestResults.*;
    public class Acuity extends VirtualKeyboard implements ActionListener, Runnable, WindowListener
    AcuityORContrastTestResult r = new AcuityORContrastTestResult(...);
    }The compiling error is:
    "Acuity.java": GeneralTestResult() in VisionSaver.Tests.TestResults.GeneralTestResult is not defined in a public class or interface; cannot be accessed from outside package at line 529, column 40

    The GeneralTestResult class is a packaged class. Sorry, when I cut and paste, I didn't copy everything. So here is the complete GeneralTestResult file:
    package VisionSaver.Tests.TestResults;
    import java.util.*;
    public abstract class GeneralTestResult
      public static int FAILING_THRESHOLE = 25;
      public abstract String getTestName();
      public abstract boolean isPassed();
      public abstract int getLeftEyeResult();
      public abstract int getRightEyeResult();
      public abstract Calendar getTestDate();
    }From the compiler's message, it seems like the import is OK. It just won't allow me to access non-public class but my classes here are declared public. Any other ideas? TIA

  • Problem with compiling a class with a package

    Hello,
    I am trying to implement the package example from the SUN Tutorial. It can be found on the page: http://java.sun.com/docs/books/tutorial/java/interpack/QandE/packages-questions.html
    I think I am doing like described but it doesn�t work. The files are stored like following on my machine:
    C:\mygame\Shared\Utilities.java               (this file can be compiled)
    C:\mygame\Server\Server.java                    (can�t be compiled)
    C:\mygame\Client\Client.java                    (can�t be compiled)
    I have no CLASSPATH set (but I tried), Java is installed in C:\Java\j2sdk
    If I try to compile the file Client.java with javac the following error message occurs:
    C:\mygame\Client>javac Client.java
    Client.java:7: cannot resolve symbol
    symbol : class Utilities
    location: package shared
    import mygame.shared.Utilities;
    ^
    Client.java:23: cannot resolve symbol
    symbol : variable Utilities
    location: class mygame.client.Client
    Utilities.printMsg("creating output stream");
    ^
    Client.java:32: cannot resolve symbol
    symbol : variable Utilities
    location: class mygame.client.Client
    Utilities.printMsg("writing current date");
    ^
    3 errors
    Are there any further prerequisites?
    Thank you

    Thank you for helping me. Now I am one step forward. Now I can compile each of my Java classes. But if I want to start them with java the following messages occurs. In addition I changed all pathes and class names to lower case.
    C:\mygame\server>java server
    Exception in thread "main" java.lang.NoClassDefFoundError: server
    C:\mygame\server>cd ../client
    C:\mygame\client>java client
    Exception in thread "main" java.lang.NoClassDefFoundError: client
    C:\mygame\client>cd ../shared
    C:\mygame\shared>java utilities
    Exception in thread "main" java.lang.NoClassDefFoundError: utilities
    C:\mygame\shared>

  • How can I split a class into 2 files?

    I converted a C++ program to Java recently and it works fine, but I ran into a problem.
    One file is very large and I need to add more functionality. Unlike with C++ where you can just put new functions in another file, I don't see a way to do it in Java.
    I made another file, and therefore another class, but the compiler complains that it can't call a static function from non-static context. (I did not declare it static so I guess it's assuming it) But I understand why. So I made the new class "extend" the old one so "this" would exist but that doesn't work -- Is it because the new class is a subclass of the original class?
    There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.

    JavaIsBetterThanCPP wrote:
    There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.Unfortunately Java has no concept of "partial classes" like C# has. Generally, however, a class that is large enough to split up into separate files is either one class that should be modularized further into separate classes, or it already is modularized and all that code is the result of many inner classes. What some people do is promote those inner classes to top-level members in their own file, and mark them as package-private. Using a package you can basically have two classes that know everything about each other and have full access to each other.
    But personally, and until I see justification otherwise, semantics in Java being unbreakingly tied to a certain file structure and naming is the most bonehead and, frankly, non-Java thing about Java.
    There's probably a pre-processor out there that will let you split a class into multiple files and will combine them into a single source file just-in-time to pass to the compiler.

  • Breaking Down Classes Into Files

    I'd like to know what's considered best practice when dividing multiple classes into seperate files. I know you can have only one public class per file, and I've heard some people say it's best to have one class per file, period. But the one-class-per-file rule seems overly strict.
    To give a specific example, I have a class which manages event handlers and event generators. The class receives events and delegates them to one of its registered handlers. The handlers can, in turn, spawn new events by calling the event generators, which have package access.
    Currently, I have the handlers, the generators, and the public class which manages them all in one file, which I know is not good, especially since some of the handlers and some of the generators are fairly large classes in their own right. However, it would be silly (I think) to put every handler and every generator in its file, because some of them are almost trivially small, and none of them have public access. But what is the best way to break them down: Should I put the handlers all in one file, and the generators all in one file, giving me three files total? Or are there other principles that should guide me?
    Thanks for any thoughts,
    John

    That's a good point. Although, as you said, it
    doesn't really apply in my case. That is, if I put
    all the handlers in a file called EventHandlers.java,
    that should be pretty clear for me. And, in fact, it
    would probably be easier to work with the classes if
    they are all in one file.But what do you think about when I say reuse? Don't you think that one class per file will make it easier to reuse the classes? As it is now you have to take them all. Since you have things that are in common for them I would say that you must have interfaces, and abstract classes. Couldn't they be reused in another project? So there are benefits even in small projects. It's also better to have many files if there are several developers and your version manager doesn't allow multiple checkouts of the same file.
    >
    Also, you mentioned sub-packages. I'm assuming
    classes in sub-packages do not have access to their
    parent's package-access members. What I really would
    like is to prevent any classes except the event
    handlers from accessing my EventManager's generator
    members. Could you solve that problem in another way? Why do they need access to the EventManager?
    Are you saying I should put all the other
    classes in a sub-package? I say that you should put related classes in sub-packages. Look at the package structure of the java core (can be seen in the javadoc)
    /Kaj

Maybe you are looking for

  • Error when write data object in archiving (BW)

    HI: I am making an infocube archiving,this process is cancelled due to an error. the error is: Error E/S en fichero de archivo BW02sapmntBWPArchivingBWP_BW_0_BWCZRT_C05_20             BA        024 Error al grabar un objeto de datos                  

  • Why can't i install adobe flash player 10.2

    i have vista, 34 bit; sp 1; IE8.   i have adobe 8, which came installed on my computer. i am trying to install adobe 10.2, and get as far as step 2.   after seemingly downloading everything, i get the message "error: installation failed." how do i co

  • Randomly losing network connection over wireless

    Shortly after installing the 10.4.5 software update, my G4 iBook with built-in Airport Extreme card has been losing connection with increasing frequency. Built-in Ethernet use is unaffected. I'm calling this problem thrash-and-drop. 1. When it's losi

  • PE9 crashes all the time while editing on Mac OS X

    Maybe I have wrong system settings in the editing program, because every time I make the smallest change, eg. add text, the PE9 crashes. I have to render the work area after each text addition and sometimes the program crashes 5 or more times before

  • Deleting and Syncing Photos on iPhone doesn't work or is stuck

    I have around 3000 photos on my iPhone (all albums from Apterture synched via iTunes). I intend to delete all of them. It does not work if I choose to uncheck the synch photos feature in iTunes and also if I check it but have no albums/projects selec