Muse update fails, cannot find directory error 43?
When I try to update Muse it keeps failing,, "can't find a critical file/directory error 43"
How can I help?
Dougcoms this error indicates a failure to write to a specific directory. I would recommend reviewing your installation logs to determine where the file permissions under your current User account have become compromised. Please see Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html for information on how to locate and interpret your installation log files.
Similar Messages
-
Time machine cannot find volume, error-1. Where can I fine solution for this error? Have latest updates for Airport Utility and TM, running Lion.
See #C17 in Time Machine - Troubleshooting.
-
Need help with class info and cannot find symbol error.
I having problems with a cannot find symbol error. I cant seem to figure it out.
I have about 12 of them in a program I am trying to do. I was wondering if anyone could help me out?
Here is some code I am working on:
// This will test the invoice class application.
// This program involves a hardware store's invoice.
//import java.util.*;
public class InvoiceTest
public static void main( String args[] )
Invoice invoice1 = new Invoice( "1234", "Hammer", 2, 14.95 );
// display invoice1
System.out.println("Original invoice information" );
System.out.println("Part number: ", invoice1.getPartNumber() );
System.out.println("Description: ", invoice1.getPartDescription() );
System.out.println("Quantity: ", invoice1.getQuantity() );
System.out.println("Price: ", invoice1.getPricePerItem() );
System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
// change invoice1's data
invoice1.setPartNumber( "001234" );
invoice1.setPartDescription( "Yellow Hammer" );
invoice1.setQuantity( 3 );
invoice1.setPricePerItem( 19.49 );
// display invoice1 with new data
System.out.println("Updated invoice information" );
System.out.println("Part number: ", invoice1.getPartNumber() );
System.out.println("Description: ", invoice1.getPartDescription() );
System.out.println("Quantity: ", invoice1.getQuantity() );
System.out.println("Price: ", invoice1.getPricePerItem() );
System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
and that uses this class file:
public class Invoice
private String partNumber;
private String partDescription;
private int quantityPurchased;
private double pricePerItem;
public Invoice( String ID, String desc, int purchased, double price )
partNumber = ID;
partDescription = desc;
if ( purchased >= 0 )
quantityPurchased = purchased;
if ( price > 0 )
pricePerItem = price;
public double getInvoiceAmount()
return quantityPurchased * pricePerItem;
public void setPartNumber( String newNumber )
partNumber = newNumber;
System.out.println(partDescription+" has changed to part "+newNumber);
public String getPartNumber()
return partNumber;
public void setDescription( String newDescription )
System.out.printf("%s now refers to %s, not %s.\n",
partNumber, newDescription, partDescription);
partDescription = newDescription;
public String getDescription()
return partDescription;
public void setPricePerItem( double newPrice )
if ( newPrice > 0 )
pricePerItem = newPrice;
public double getPricePerItem()
return pricePerItem;
Any tips for helping me out?System.out.println("Part number:
"+invoice1.getPartNumber;
The + sign will concatenate invoice1.getPartNumber()
after "Part number: " forming only one String.I added the plus sign and it gives me more errors:
C:\>javac InvoiceTest.java
InvoiceTest.java:16: operator + cannot be applied to java.lang.String
System.out.println("Part number: ", + invoice1.getPartNumber() );
^
InvoiceTest.java:17: cannot find symbol
symbol : method getPartDescription()
location: class Invoice
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:17: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:18: cannot find symbol
symbol : method getQuantity()
location: class Invoice
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:18: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:19: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Price: ", + invoice1.getPricePerItem() );
^
InvoiceTest.java:20: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
^
InvoiceTest.java:24: cannot find symbol
symbol : method setPartDescription(java.lang.String)
location: class Invoice
invoice1.setPartDescription( "Yellow Hammer" );
^
InvoiceTest.java:25: cannot find symbol
symbol : method setQuantity(int)
location: class Invoice
invoice1.setQuantity( 3 );
^
InvoiceTest.java:30: operator + cannot be applied to java.lang.String
System.out.println("Part number: ", + invoice1.getPartNumber() );
^
InvoiceTest.java:31: cannot find symbol
symbol : method getPartDescription()
location: class Invoice
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:31: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:32: cannot find symbol
symbol : method getQuantity()
location: class Invoice
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:32: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:33: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Price: ", + invoice1.getPricePerItem() );
^
InvoiceTest.java:34: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
^
16 errors -
Friend,
In Solaris 10 we took dump of a vxfs file system at run level 3 using vxdump to LTO4 tape but while restoring it back using vxrestore command we are getting an error as "cannot find directory inode 0 abort[yn]"
-> ossdg/export (2011-08-09 16:46:52)
Using 'vxdump' to store
vxfs vxdump: Date of this level 0 dump: Tue Aug 09 16:46:52 2011
vxfs vxdump: Date of last level 0 dump: the epoch
Dumping /dev/vx/rdsk/ossdg/export_m2 to /dev/rmt/0un
vxfs vxdump: mapping (Pass I) [regular files]
vxfs vxdump: mapping (Pass II) [directories]
vxfs vxdump: estimated 11178068 blocks (5458.04MB) on 0.01 tape(s).
vxfs vxdump: dumping (Pass III) [directories]
vxfs vxdump: dumping (Pass IV) [regular files]
vxfs vxdump: vxdump: 5596521 tape blocks on 1 volumes(s)
vxfs vxdump: Closing /dev/rmt/0un
vxfs vxdump: vxdump is done
-> ossdg/export (2011-08-09 16:46:52)
Using 'vxdump' to store
vxfs vxdump: Date of this level 0 dump: Tue Aug 09 16:46:52 2011
vxfs vxdump: Date of last level 0 dump: the epoch
Dumping /dev/vx/rdsk/ossdg/export_m2 to /dev/rmt/0un
vxfs vxdump: mapping (Pass I) [regular files]
vxfs vxdump: mapping (Pass II) [directories]
vxfs vxdump: estimated 11178068 blocks (5458.04MB) on 0.01 tape(s).
vxfs vxdump: dumping (Pass III) [directories]
vxfs vxdump: dumping (Pass IV) [regular files]
vxfs vxdump: vxdump: 5596521 tape blocks on 1 volumes(s)
vxfs vxdump: Closing /dev/rmt/0un
vxfs vxdump: vxdump is done
-> ossdg/export (2011-08-09 16:46:52)
Using 'vxdump' to store
vxfs vxdump: Date of this level 0 dump: Tue Aug 09 16:46:52 2011
vxfs vxdump: Date of last level 0 dump: the epoch
Dumping /dev/vx/rdsk/ossdg/export_m2 to /dev/rmt/0un
vxfs vxdump: mapping (Pass I) [regular files]
vxfs vxdump: mapping (Pass II) [directories]
vxfs vxdump: estimated 11178068 blocks (5458.04MB) on 0.01 tape(s).
vxfs vxdump: dumping (Pass III) [directories]
vxfs vxdump: dumping (Pass IV) [regular files]
vxfs vxdump: vxdump: 5596521 tape blocks on 1 volumes(s)
vxfs vxdump: Closing /dev/rmt/0un
vxfs vxdump: vxdump is done
-> Restore ossdg/export 2011-08-17 18:42:18
Positioning tape at block 10
New vxfs FS on export
vxrestore -c export
UX:vxfs vxrestore: ERROR: V-3-24789: expected next file 1408, got 1405
UX:vxfs vxrestore: ERROR: V-3-24789: expected next file 16547, got 16546
cannot find directory inode 0
abort [yn] abort [yn]
What will be the possible reason of this error? Can be ignore this error and continue further?
Thanks,
Srikanta SanpuiSrikantada,
Found some instances of similar problems. Hope you"ll find these useful.
(From http://sfdoccentral.symantec.com/sf/4.1/solaris/manpages/vxfs/vxrestore_1m.html)
{quote}*expected next file +inumber+ got +inumber+*
A file not listed in the directory appeared. This can occur when using a dump tape created on an active file system. Dumps should be performed with the file system unmounted or with the system in single-user mode (see the init(1M) manual page) to ensure a consistent dump. The dump can also be performed in the multi-user environment using a snapshot file system with the online backup facility (see the snapof= filesystem option of the VxFS mount command{quote}
Another conversation suggests that the /etc/vfstab file might be messed up.
(From http://www.sunmanagers.org/pipermail/summaries/2004-June/005246.html)
{quote}Check your /etc/vfstab file very carefully: I suspect you may find that
the line for / looks something like
/dev/dsk/c0t8d0s0 /dev/rdsk/c0t0d0s0 / ufs #[...]
instead of
/dev/dsk/c0t8d0s0 /dev/rdsk/c0t8d0s0 / ufs #[...]
When certain filesystem tools are given a block device (/dev/dsk/*),
they consult /etc/vfstab to find out the name of the corresponding raw
device (/dev/rdsk/*).
If this is in fact your problem, then note that ufsdump uses a similar
algorithm: any backups you've made could be of the wrong device.{quote}
Good luck :) -
How do I resolve the "Mozilla cannot find runtime" error message when I try to start Firefox?
Mozilla Firefox updated to version 36.0. When I click on the Firefox icon to open it I receive the message: "Mozilla cannot find runtime" I receive the same message if I try to open Firefox by selecting "firefox.exe" from within the Program Files. I subsequently uninstall Mozilla Firefox and reinstall it. It will open and run normally right after the re-installation. Then if I close the program and try to re-open it again, I get the same "Mozilla cannot find runtime" error message.
The only way I can get Firefox to open is if I uninstall and re-install it every time I want to open it after the initial re-installation.''sage68 [[#answer-700841|said]]''
<blockquote>
Hi Adriel,
The "Mozilla cannot find runtime" problem has returned. It occurs in two situations:
1. When Firefox tries to download updates using "updater.exe" (version 36.0.0.5531), which causes my "Norton Internet Security" program to notify me with the message: "Auto-Protect has removed security risk Suspicious.Cloud.9.B" This message is shown every time "updater.exe" activates.
</blockquote>
I also have experienced this during several upgrades, not just the latest. (I am using Windows XP and Norton Security Suite.) Norton identifies c:\program files\mozilla firefox\updated\xul.dll with the Suspicious.Cloud.9.B virus and removes the file. I can set the Norton installation to accept xul.dll but it would make more sense for a Mozilla expert to contact Norton and work out a permanent solution, for all who are facing this problem. -
Unable to compile "SerialDemo.java", many "cannot find symbols" errors
I have all the correct files in their respective directory.
comm.jar in jre\lib\bin,
javax.comm.properties in jre\lib
win32com.dll in jre\bin
I extracted all the whole of SerialDemo into one folder and started compiling from there. But it doesn't work. I keep getting many "cannot find symbol" errors. They are usually referred to by:
SerialParameters
SerialConnection
AlertDialog
SerialConnectionException
SerialDemo.java is not edited and was compiled directly. All of my files are in one folder (AlertDialog.java compiles fine and is in the same folder, etc)
I was wondering what might be the cause of it. I'm currently using a Windows XP Service Pack 2, IBM P3 Laptop. I was reading "http://forum.java.sun.com/thread.jspa?threadID=674514&messageID=3941560"
And I found out it works fine on Win2k OS. Why is this so? I'm getting the exact same error as he stated on his last post and I tried looking for a solution and decided to turn to you guys. I'd really appreciate some help, if any. Thanks in advance.I followed the PlatformSpecific. I realised that I
added one for JRE when it wasn't required. The
problem was solved.
Thank you so much, the both of you. My stupid mistake
caused quite a bit of havoc. I apologise.No need to apologise; The confusing part is that when you download
a jre, that's just what your get: a jre, but when you download the jdk
you not just get the jdk and the jre but you get a second jre with them,
stored under the jdk directory.
To the programmer that second jre is useless, it is used internally by
the jdk tools.
kind regards,
Jos -
How can I open my file after 'cannot find -filename-' error message?
OK, the bottom line is, InDesign crashes and I cannot recover my file. I get a 'Cannot find file' error message when I try to open the file.
I am using CS6 on a MacBookAir, OS X Yosemite.
I have tried finding the 'InDesignFileRecovery' folder, I cannot find it anywhere, it's not in my Library or Caches folder.
However, I do work in dropbox, so I just headed over to dropbox to recover from their 'previous versions'. It starts to get weird. There are lots of previous versions (I save very regularly) but when I download a previous version (that I know was fine) it downloads with a indd.txt extension. So I remove the txt extension and keep the indd and everything looks fine, but then that recovered file gives the same message. I tried renaming the recovered file and opening that, same 'cannot find file' error message.
I can open InDesign and open the file from the day before, but none of the dropbox earlier versions of that day's work. I am SO sick of this happening. It happened to me last week to, so far I have lost 20 hours work :-(
I have tried quitting InDesign and restarting the Mac, doesn't help. The only thing I can think of is to 'save as' every couple of hours, at least then hopefully I only lose 2 hours work.Thanks, when you say 'hidden by default' then how does one find it? I have already tried the path you mention and there is no sign of a cache folder with Adobe files. Spotlight doesn't reveal anything either.
-
I have a macbook air and since the last update, I cannot find camera. Ideas?
I have a mac book air and since the last update, I cannot find my camera.
What Application are you attempting to use with the camera?
If you launch Photobooth from your Applications folder, does the camera activate? -
Help! Getting the cannot find symbol error.
Hello everyone. I have gone throught my whole program and I am still getting a cannot find symbol error. What does this error mean exactly? Here is the code below. I am trying to color a background using a comobox method.
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;
import java.awt.GridLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JComboBox;
public class ComboboxFrame extends JFrame
public ComboboxFrame()
colorPanel = new JPanel();
colorPanel.setPreferredSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
getContentPane().add(colorPanel, BorderLayout.CENTER);
class ChoiceListener implements ActionListener
public void actionPerformed(ActionEvent event)
setbackgroundColor();
listener = new ChoiceListener();
createControlPanel();
setbackgroundColor();
pack();
private void createControlPanel()
JPanel colorPanel = createComboBox();
JPanel controlPanel = new JPanel();
controlPanel.setLayout(new GridLayout(1, 1));
controlPanel.add(colorPanel);
getContentPane().add(
controlPanel, BorderLayout.SOUTH);
public JPanel createComboBox()
colorCombo = new JComboBox();
colorCombo.addItem("Red");
colorCombo.addItem("Green");
colorCombo.addItem("Blue");
colorCombo.setEditable(true);
colorCombo.addActionListener(listener);
JPanel panel = new JPanel();
panel.add(colorCombo);
return panel;
public void setbackgroundColor()
String color = (String)colorCombo.getSelectedItem();
colorPanel.setbackgroundColor(new backgroungColor(color));
colorPanel.repaint();
private JPanel colorPanel;
private static final int PANEL_WIDTH = 300;
private static final int PANEL_HEIGHT = 300;
private JComboBox colorCombo;
private ActionListener listener;
}The line with the error is: colorPanel.setbackgroundColor(new backgroungColor(color));
Here is the second file
import javax.swing.JFrame;
public class backgroundTest
public static void main(String[] args)
JFrame frame = new comboboxFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.show();
}Any help would be appreciated. Thank youHello everyone. I have gone throught my whole
program and I am still getting a cannot find symbol
error. "Symbol" here means variable or method name (or maybe class name, but I think it will specifically bitch about classnames in that case).
String foo = "foo";
System.out.println(zoo); // no such variable as zoo. So...
colorPanel.setbackgroundColor(new backgroungColor(color));Looks like colorPanel or setbackgroundColor(new backgroungColor doesn't exist.
Note that spelling and capitalization count. Java's really anal that way. -
Help - cannot find symbol error
Can someone help me? I am getting "cannot find symbol" error in my code and cannot figure out why. Here is my code:
public class toyInventory
private String[] toyInventory = {"ball", "bat", "bear", "car", "doll", "game", "glove", "playstation", "train"};
private int[] nineArray = {0,0,0,0,0,0,0,0};
int invItems = 0;
public void countToy()
String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};
int noMatch;
for(int a = 0; a < orderInput.length; a++)
noMatch = 0;
for(int b = 0; b < toyInventory.length; b++)
if(orderInput[a] == toyInventory)
noMatch = 1;
break;
if(noMatch == 0)
invItems = 1;
public void printItems()
for(int c = 0; c < toyInventory.length; c++)
if (countToy[c] > 4)<-------- cannot find symbol error here
System.out.print("*");
System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <----cannot find symbol error here also
System.out.print("The number of invalid items in the order is" + invItems);
public static void main( String[] args)
toyInventory collection = new toyInventory ();
collection.countToy();
collection.printItems();public void countToy()
String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};In the above code you have declared countToy() as method and while in the below lines you are calling countToy[] as an array. So please check that...
if (countToy[c] > 4)<-------- cannot find symbol error here
System.out.print("*");
System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <----cannot find symbol error here also
} -
have Creative Cloud Subscription- Windows 7 ultima--16GB ram memory-Photoshop cc 2014 updated- I cannot find the Creative Cloud Libraries instead I get My Libraries that I have not created- I cannot find the Assets tab. Tried several links no solution. How can I get the Creative Cloud Market Library?
kglad,
Thanks for the suggestion but I have attempted this many times to no avail. As I said in my original post, "I have researched this problem on this forum and the Adobe site and believe that I have tried everything over the past week."
It is very late here (I am in Greece). I will have a further attempt in the morning. The windows machine is hut down. Thanks for your help.
Bob -
AnyConnect installation issues - Network Adapter is not created - cannot find any error?
I am a contractor with a Federal Agency that just swithed to using Cisco AnyConnect for VPN access. I am about the only person with this installation issue, that I know of. When installing the AnyConnect client on a Windows 7 machine running a 3.X msi install - the expected Cisco NewWork Adapter is not created in Network connections as I would expect. I have turned off Firewall services, I've turned off SQL services, Citrix, etc. But nothing I have tried allows this to install correctly.
When I attempt to use the AnyConnect VPN client and login the the remote service - I receive the
The VPN client driver has encountered an problem. Please restart your computer or device, then try again.
I have attempted the driver database fix suggested online - BUT it didn't correct the problem because I think my problem is in the initial setup, although I cannot find and error in the Windows/inf/setupapi.app.log and setupapi.dev.log that would suggest there is an driver problem.
The DART logs are a bit cryptic, but nothing stands out that would give me any idea as to what might be blocking the creating of the Network adapter the VPN Client would use to connect to the remote network.
Can anyone here point me in the right direction - I am not receiving help from configuration management - their solution is to format my entire computer and rebuild it which will cost me weeks of time and I have a deadline looming in Feburary.
Thank you!
MichaelHi Jacob,
Let's try this & report the outcome...
Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
10.5.x/10.6.x instructions...
System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
The interface that connects to the Internet should be dragged to the top of the list.
Then highlight the interface you connect with, click Advanced, is it set to Using DHCP, what IP does it Show & Router IP, then click on Proxies tab & make sure none are set, click on the DNS tab and enter these numbers...
208.67.222.222
208.67.220.220 -
AnyConnect installation issue - Network Adapter is not created - cannot find any error?
I am a contractor with a Federal Agency that just swithed to using Cisco AnyConnect for VPN access. I am about the only person with this installation issue, that I know of. When installing the AnyConnect client on a Windows 7 machine running a 3.X msi install - the expected Cisco NewWork Adapter is not created in Network connections as I would expect. I have turned off Firewall services, I've turned off SQL services, Citrix, etc. But nothing I have tried allows this to install correctly.
When I attempt to use the AnyConnect VPN client and login the the remote service - I receive the
The VPN client driver has encountered an problem. Please restart your computer or device, then try again.
I have attempted the driver database fix suggested online - BUT it didn't correct the problem because I think my problem is in the initial setup, although I cannot find and error in the Windows/inf/setupapi.app.log and setupapi.dev.log that would suggest there is an driver problem.
The DART logs are a bit cryptic, but nothing stands out that would give me any idea as to what might be blocking the creating of the Network adapter the VPN Client would use to connect to the remote network.
Can anyone here point me in the right direction - I am not receiving help from configuration management - their solution is to format my entire computer and rebuild it which will cost me weeks of time and I have a deadline looming in Feburary.
Thank you!
MichaelHi Jacob,
Let's try this & report the outcome...
Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
10.5.x/10.6.x instructions...
System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
The interface that connects to the Internet should be dragged to the top of the list.
Then highlight the interface you connect with, click Advanced, is it set to Using DHCP, what IP does it Show & Router IP, then click on Proxies tab & make sure none are set, click on the DNS tab and enter these numbers...
208.67.222.222
208.67.220.220 -
Since the latest ITunes update I cannot find all the CD songs I had converted into playlists. All I can find are the songs I bought on ITunes.
Hello jerryfromil,
I've found an article that may help get your content back into iTunes.
No content shows up in iTunes after updating
http://support.apple.com/kb/TS1967
All the best,
Allen -
Cannot find symbol error.. really stuck.
I have a class named Rectangle.java. It is in a package "Geometry" together with Point.java and Line.java. But when I try to use Rectangle.java in my main program, MyRect.java, it gives me a "cannot find symbol" error, particularly the methods and sometimes the variables. I tried compiling just my Rectangle class and it compiled fine.. And I tried the Line and Point classes on another program and it works fine... well probably because the Line and Point classes are from a book(Ivor Horton's Beginning Java 2).. I am just starting out in Java. :)
Rectangle.java
package Geometry;
public class Rectangle{
public Point[] corner = new Point[4];
public String name;
public Rectangle(){
corner[0].setPoints(0,0);
corner[1].setPoints(1,0);
corner[2].setPoints(0,1);
corner[3].setPoints(1,1);
name = new String("Unknown");
public Rectangle(double point1_x,double point1_y,double point2_x, double point2_y, String Name){
corner[0].setPoints(point1_x, point1_y);
corner[3].setPoints(point2_x, point2_y);
corner[1].setPoints(point2_x, point1_y);
corner[2].setPoints(point1_x, point2_y);
name = new String(Name);
public Rectangle(final Rectangle oldRect, String Name){
corner[0] = oldRect.corner[0];
corner[3] = oldRect.corner[3];
corner[1] = oldRect.corner[1];
corner[2] = oldRect.corner[2];
name = new String(Name);
public double getWidth(){
return corner[0].distance(corner[1]);
public static void printRectangle(final Rectangle rect){
for(int i= 0;i<4;i++){
System.out.println("Corner"+(i+1)+" X: "+rect.corner.getX()+" Corner"+(i+1)+" Y: "+rect.corner[i].getY());
System.out.println();
public String toString(){
return ("Name: "+name);
}MyRect.java
import Geometry.*;
public class MyRect{
public static void main(String[] args){
Rectangle myRect = new Rectangle(0,0,2,1);
Rectangle copyRect = new Rectangle(myRect);
printRectangle(myRect);
double width = myRect.getWidth();
}and the errors:
MyRect.java:4: cannot find symbol
symbol : constructor Rectangle(double,double,double,double,java.lang.String)
location: class Rectangle
Rectangle myRect = new Rectangle(0.0,0.0,2.0,1.0,"My Rectangle")
^
MyRect.java:9: cannot find symbol
symbol : variable name
location: class Rectangle
System.out.println(myRect.name);
^
2 errorsAre you sure you have posted the whole content of MyRect.java
import Geometry.*;
public class MyRect{
public static void main(String[] args){
Rectangle myRect = new Rectangle(0,0,2,1);
Rectangle copyRect = new Rectangle(myRect);
printRectangle(myRect);
double width = myRect.getWidth();
}I don't see the following error line in the code you have given.
MyRect.java:4: cannot find symbol
symbol : constructor Rectangle(double,double,double,double,java.lang.String)
location: class Rectangle
Rectangle myRect = new Rectangle(0.0,0.0,2.0,1.0,"My Rectangle")
^
MyRect.java:9: cannot find symbol
symbol : variable name
location: class Rectangle
System.out.println(myRect.name);
^
2 errors
Maybe you are looking for
-
Sony SR100 Camera support but not detected!!!???
The first time I started iMovie 08 I don't recall what I did, it just worked and importing video from my Sony SR100 worked perfect. That was the fist and last time. No matter what I try now it will not see the camera. Only iphoto sees it as "noname"
-
Memory leaks in MFC while using CDatabase::OpenEx()
Hi, This question has been asked previously but the explanation was not in detail and i could never reach to the bottom of it. I hope i can elaborate more on the problem statement and i can get a resolution/explanation from the experts here. Consider
-
I need to add to new command buttons in standard transaction XD01. These new buttons will be used by the user to start specific transaction from the XD01. Is it possible? I'm using release 4.6. Thanks in advance, Stefano.
-
Creating a new instance of a member class?
I'm writting a serialization library for a college project and I have a problem with deserializing an object which class contains a member class. A rough example: class Outer{ class Member{ double d =0; public Member member =new M
-
When configuring remote access VPN for user on our internal network, for example if we have a guest VLAN for vendors ON-SITE in which they will VPN to the ASA, is it better to have them connect through the internal interface or have go to the outside