Semi Colon Expected Help

G'day,
I'm a complete newby to java and programming in general. I'm trying to recreate a simple game of change wherein variables are reduced by random numbers between 0 and 1. But that's beside the point.
I have been recieving the "; expected error for the line *int battle(int war);* (down the bottom). Why?
{code}import java.util.Scanner;
import java.util.Random;
public class UnifiedDomination
private Random rng = new Random(); // Our random number generator
private Scanner input = new Scanner(System.in); // Our keyboard reader
private int australianTerritory1Armies = 4;
private int australianTerritory2Armies = 2;
private int australianTerritory3Armies = 2;
private int australianTerritory4Armies = 1;
private int africanTerritory1Armies = 3;
private int africanTerritory2Armies = 2;
private int africanTerritory3Armies = 3;
private int africanTerritory4Armies = 2;
int battle1, battle2;
int myRandonNumber = rng.nextInt(2);
private String australianPlayerName; // Name of Australian player
private String africanPlayerName; // Name of African player
public UnifiedDomination();
System.out.print("Enter name of player for Australia: ");
australianPlayerName = input.nextLine();
System.out.print("Enter name of player for Africa: ");
africanPlayerName = input.nextLine();
System.out.println();
System.out.print("Australia has: " + australianTerritory1Armies + "armies.");
System.out.println(australianPlayerName + "'s Australian Territory 1 fights " + africanPlayerName + "'s African Territory 3");
int battle(int war);
{ return war - rng.nextInt(2); }{code}
Thanks for any help in advance.
Edited by: Gears on Apr 2, 2008 4:32 AM

There are two major mistakes in your code, at least on the first glance:
public UnifiedDomination();. You cannot put a semi-colon after the declaration of a method (unless it is abstract) or after a constructor.
int battle(int war);
        {   return war - rng.nextInt(2);    } Same thing plus you cannot declare methods inside other methods.

Similar Messages

  • Having a spot of bother with expected semi colons

    Hello there, i am currently attempting to get snow to display on a java applet using a random number generator. When i compile the program i am getting the same error message for line 24 and 28.
    " ';' expected' " I can't figure out where the semi-colons are meant to go..i was wondering would any1 know what the matter is please...although if i do i would probably get more errors...my code is displayed below...any1 know what the matter is? thanks..i have labelled line 24 ad 28 for your benefit.
    import java.awt.geom.Ellipse2D;
    public class snow
         private int xLocation;
         private int yLocation;
         private int width;
         private int height;
         int random = randomNumberGenerator();
         public snow(int x, int y, int w, int h)
              xLocation = x;
              yLocation = y;
              width = w;
              height = h;
              drawsnow();
    public class drawsnow
         public drawsnow()
    24>          draw a snow (= randomGenerator())
              for(int i = 0; i <= 20, i++ )
    28>     public draw a snow()
              Ellipse2D.Double circle =
                   new Ellipse2D.Double( x, y, diameter, diameter);
              g.2draw(circle;)
         public static void main(String[]args)
              JFrame frame = new JFrame();
              final int FRAME_WIDTH = 300;
              final int FRAME_HEIGHT = 400;
              frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
              frame.setTitle("Snow Amigo");
              frame.set.DefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              snow component = new snow();
              frame.add(component);
              frame.setVisible(true);
    }

    Method names (any identifiers) can't have spaces in them - ie "draw a snow"
    Method declarations must have return types (eg "void")
    Your "for()" loop on 25 has no body
    Line 32 is completely up the spout :o)
    ok thanks...where do i put the void in?, how to i put a body on for on line 25 and how do i fix the spout lol???
    import java.awt.geom.Ellipse2D;
    public class snow
         private int xLocation;
         private int yLocation;
         private int width;
         private int height;
         int random = randomNumberGenerator();
         public snow(int x, int y, int w, int h)
              xLocation = x;
              yLocation = y;
              width = w;
              height = h;
              drawsnow();
         public drawsnow()
              drawsnow (= randomGenerator())
         24>     for(int i = 0; i <= 20, i++ )
         public drawasnow()
              Ellipse2D.Double circle =
                   new Ellipse2D.Double( x, y, diameter, diameter);
              g.2draw(circle;)
         public static void main(String[]args)
              JFrame frame = new JFrame();
              final int FRAME_WIDTH = 300;
              final int FRAME_HEIGHT = 400;
              frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
              frame.setTitle("Snow Amigo");
              frame.set.DefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              snow component = new snow();
              frame.add(component);
              frame.setVisible(true);
    }

  • Author metadata separated by semi-colons truncated in file properties and "Get Info"

    I'm using Acrobat Professional 9.0 (CS3) for Mac to edit the metadata for a collection of PDFs to be made available on the web. When I enter the data, I am inputting a list of authors separated by commas, like this: Smith J, Watson C, Brown J. If I click on "Additional metadata", the data I've already entered is transposed into the various XMP fields. And the commas separating the author names are changed to semi-colons. I gather that this happens because XMP wants to separate multiple authors with semi-colons, and Acrobat wants the metadata in XMP fields to match the metadata stored for the file properties. Fine.
    However, if I save such a PDF and then use Get Info on my Mac (OSX 10.4) to look at the file properties, the list of authors is now truncated where the first semi-colon appears. The list is also truncated in Windows XP if I right-click and select properties. The list is also truncated when I look at the file properties in Preview on my Mac, or if I look at file properties using FoxIT, or using Adobe Acrobat Reader 7 or earlier. The only way a site visitor will actually be able to view the full list of authors in a file saved this way is to use Adobe Reader version 8 or later.
    I would like to preserve XMP/Dublin Core/etc metadata in the proper format in the XMP code, but would also like users of standard, popular file viewers to be able to access the full list of authors. Is there a way to do this with Acrobat 9?
    Also, once I've saved a file and the XMP metadata has been altered, Acrobat seems to permanently change the way that the authors are listed in the file properties. I cannot manually change those settings any longer without Acrobat overriding my changes and converting commas to semi-colons, or surrounding the entire list of authors in quotation marks. Is there a way to get around these Acrobat overrides and manually take control of my metadata again?
    Does Windows Vista read the authors list correctly in the file properties if it is separated by semi-colons?
    It seems to me that in an attempt to get XMP metadata working smoothly across the entire CS line, Adobe has jumped the gun somewhat and is now forcing Acrobat users to use "file properties" metadata that is really only fully compatible with Adobe products. Is there a way I can get some backwards compatibility on this?
    Thanks for any suggestions or insight anyone can provide to this vexing issue.
    Phil.

    Bridge has some pretty powerful and helpful features. However, I am unable to figure out how to access the non-XMP "file properties" fields through Bridge, and if I add metadata via Bridge, then I run into the same problem regarding the use of semi-colons to separate authors.
    If I had more time, or a larger set of files I might investigate the use of ExtendScript to import all my metadata from an Excel file (where it already exists) into the PDF file properties and XMP metadata.
    The best solution for my case though appears to be to use Acrobat 9 and to do the double-edit process for each file. I should be able to just cut-and-paste the metadata from the Excel file, and then if I save the Authors list to the end, I can simply paste it once into the XMP field (through the Advanced metadata button) and then return to the regular file properties page and paste it again in there, where Acrobat will add quotes around it.
    Lastly, if anyone else happens to find this post and is looking for similar information, I would recommend searching in the Bridge forum as well as the Acrobat forum.
    Phil.

  • How to save an excel file as CSV with semi-colon as data separator?

    We are creating a flat data file to load the flat file data to our BW system with Excel.  When we save the file, there are three kinds of CSV types for selecting from the "Save as type" list box:
    CSV (Comma delimited)
    CSV (Macintosh)
    CSV (MS-DOS)
    There is no CSV (semi colon delimited) type.  If we pick CSV (Comma delimted) as the type, then when clicking the "Preview ..." picture icon under the "DataSource/Trans. Structure" tab of the InfoSource for this flat file (with the CSV radio button checked the Data separator default is ";"), the File Upload Preview window shows the data is messed up that some columns of the excel flat file are combined into one column.
    Since the save type we picked is "CSV (Comma delimited)", then we try to change the default Data separator from ";" to "," in the preview selection screen, but still not helpful!
    How to resolve the above problem?
    Thanks

    Hi Kevin,
    This "," is defined in your windows setting. If you want to have ";" as separator then go to control Panel, select Regional Options, go to Numbers Tab and define the List separator as ";". After that when you will save your excel file as CSV(MS-DOS) it will have ";" as separator. This will make sure that the amounts are not broken in to two different fields while loading.
    Else if you keep "," as separator then you can also go into the Excel and define all number fields as Number without thousand separator.
    Let me know if you have any doubts in this.
    Regards,
    Rohit

  • Problem with SAX parser - entity must finish with a semi-colon

    Hi,
    I'm pretty new to the complexities of using SAXParserFactory and its cousins of XMLReaderAdapter, HTMLBuilder, HTMLDocument, entity resolvers and the like, so wondered if perhaps someone could give me a hand with this problem.
    In a nutshell, my code is really nothing more than a glorified HTML parser - a web page editor, if you like. I read in an HTML file (only one that my software has created in the first place), parse it, then produce a Swing representation of the various tags I've parsed from the page and display this on a canvas. So, for instance, I would convert a simple <TABLE> of three rows and one column, via an HTMLTableElement, into a Swing JPanel containing three JLabels, suitably laid out.
    I then allow the user to amend the values of the various HTML attributes, and I then write the HTML representation back to the web page.
    It works reasonably well, albeit a bit heavy on resources. Here's a summary of the code for parsing an HTML file:
          htmlBuilder = new HTMLBuilder();
    parserFactory = SAXParserFactory.newInstance();
    parserFactory.setValidating(false);
    parserFactory.setNamespaceAware(true);
    FileInputStream fileInputStream = new FileInputStream(htmlFile);
    InputSource inputSource = new InputSource(fileInputStream);
    DoctypeChangerStream changer = new DoctypeChangerStream(inputSource.getByteStream());
    changer.setGenerator(
       new DoctypeGenerator()
          public Doctype generate(Doctype old)
             return new DoctypeImpl
             old.getRootElement(),
                              old.getPublicId(),
                              old.getSystemId(),
             old.getInternalSubset()
          resolver = new TSLLocalEntityResolver("-//W3C//DTD XHTML 1.0 Transitional//EN", "xhtml1-transitional.dtd");
          readerAdapter = new XMLReaderAdapter(parserFactory.newSAXParser().getXMLReader());
          readerAdapter.setDocumentHandler(htmlBuilder);
          readerAdapter.setEntityResolver(resolver);
          readerAdapter.parse(inputSource);
          htmlDocument = htmlBuilder.getHTMLDocument();
          htmlBody = (HTMLBodyElement)htmlDocument.getBody();
          traversal = (DocumentTraversal)htmlDocument;
          walker = traversal.createTreeWalker(htmlBody,NodeFilter.SHOW_ELEMENT, null, true);
          rootNode = new DefaultMutableTreeNode(new WidgetTreeRootNode(htmlFile));
          createNodes(walker); However, I'm having a problem parsing a piece of HTML for a streaming video widget. The key part of this HTML is as follows:
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                  id="client"
            width="100%"
            height="100%"
                  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
                  <param name="movie" value="client.swf?user=lkcl&stream=stream2&streamtype=live&server=rtmp://192.168.250.206/oflaDemo" />
             etc....You will see that the <param> tag in the HTML has a value attribute which is a URL plus three URL parameters - looks absolutely standard, and in fact works absolutely correctly in a browser. However, when my readerAdapter.parse() method gets to this point, it throws an exception saying that there should be a semi-colon after the entity 'stream'. I can see whats happening - basically the SAXParser thinks that the ampersand marks the start of a new entity. When it finds '&stream' it expects it to finish with a semi-colon (e.g. much like and other such HTML characters). The only way I can get the parser past this point is to encode all the relevant ampersands to %26 -- but then the web page stops working ! Aaargh....
    Can someone explain what my options are for getting around this problem ? Some property I can set on the parser ? A different DTD ? Not to use SAX at all ? Override the parser's exception handler ? A completely different approach ?!
    Could you provide a simple example to explain what you mean ?
    Thanks in anticipation !

    You probably don't have the ampersands in your "value" attribute escaped properly. It should look like this:
    value="client.swf?user=lkcl&stream=...{code}
    Most HTML processors (i.e. browsers) will overlook that omission, because almost nobody does it right when they are generating HTML by hand, but XML processors won't.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to separate a field separated by semi colons

    Hi - thought I would give this a try - any help is appreciated.
    I have a field separated by semi colons - for example - prod1;prod2;prod3
    In a cross tab I'm trying to show which products have a date in them and put an X there. My problem is if the field is like my example - it only shows once and instead of listing each single product as a product - it shows it as one like the example.
    I would like to have a column for each product with and X under each.
    I hope this is enough information.
    Any help is much appreciated.
    Thanks.
    Bill

    Marlene,
    It all just depends on what you are trying to do. If you have a set number values in the string and you want each of them in their own column then it fairly easy...
    SPLIT ({Command.jce_cest}, ";") [1]
    SPLIT ({Command.jce_cest}, ";") [2]
    SPLIT ({Command.jce_cest}, ";") [3]
    SPLIT ({Command.jce_cest}, ";") [4]
    HTH,
    Jason

  • Semi colon madness

    At the end of my quiz, the email opens up fine and the
    information is there, but there is a semi-colon added to the end of
    my email address for some reason. This brings up a syntax error
    message from the email program. My quiz is going to go out to a lot
    of non-computer savvy folks. They will not be able to figure out
    that they have to delete the semi-colon.
    Why does it appear? It is not there in the email field in the
    Quiz preferences field of Captivate.
    I think I'm going insane.
    Thanks

    If you think you're experiencing an episode of insanity, you
    should seek out professional help immediately.
    This forum is only intended for user-to-user support for
    Adobe Captivate and is not intended to provide medical advice or
    treatment.
    Just kidding... welcome to the Captivate community!
    It's very odd that the semi-colon is causing a problem. It's
    a standard mechanism in e-mail, used primarily to separate names
    when an e-mail is addressed to more than one person. Are you sure
    the error you're seeing is not due to you having entered an invalid
    e-mail address in Captivate, possibly due to a typo?
    In testing, I didn't see a semi-colon in the value being
    passed to the e-mail program so I suspect the semi-colon is being
    added by the browser and/or the e-mail client itself. There may not
    be any way to prevent it.
    That said, if you only send the e-mail to a single recipient
    and you're SURE you don't want the semi-colon, use the code at the
    bottom of this post to ensure that the outgoing value doesn't
    contain a semi-colon. I doubt it will do anything, but it can't
    hurt to try.
    If you still see a semi-colon afterwards, it's definitely
    being added after the e-mail submission process is being kicked
    off.

  • Semi Colon issues

    What is wrong with my Semi Colon? I'm getting an error 102 around the ; but if I take it out,
    I'm getting the error that I need a colon. The colon is right before the WITH statement.  The Select statement looks correct.  Please help, I'm a newbie.
    Select * INTO TradesMoxyImport
    From
    ;WITH ClientsTable AS (SELECT ClientID, Autex
    FROM Clients
    WHERE (ActiveAcct = 'Active') AND (Directed = 'no') AND (Taxable LIKE '%' + '%')), AxysPal AS
    (SELECT Autex, Quantity, PctAssets
    FROM AxysPals
    WHERE (SecType = 'csus') AND (Ticker = 'ace'))
    SELECT ClientsTable_1.Autex, ClientsOnePercent.SortOrder, CASE WHEN ROUND(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52,
    0) > ISNULL(AxysPal_1.Quantity, 0) THEN ROUND(ClientsOnePercent.PctEqty * ROUND(AxysAUM.Total, 0) * CONVERT(DECIMAL(3, 2), 5)
    / 100 / 113.52 - ISNULL(AxysPal_1.Quantity, 0), 0) END AS BuyQty, CASE WHEN ROUND(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5)
    / 100 / 113.52, 0) < ISNULL(AxysPal_1.Quantity, 0) THEN ROUND(ISNULL(AxysPal_1.Quantity, 0)
    - ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0) END AS SellQty
    FROM ClientsOnePercent INNER JOIN
    ClientsTable AS ClientsTable_1 ON ClientsOnePercent.ClientID = ClientsTable_1.ClientID INNER JOIN
    AxysAUM ON ClientsTable_1.Autex = AxysAUM.Autex LEFT OUTER JOIN
    AxysPal AS AxysPal_1 ON ClientsOnePercent.Autex = AxysPal_1.Autex
    WHERE (ClientsOnePercent.OnePctGroupID = 1) AND (ClientsOnePercent.BuyRule IS NULL) AND (ClientsOnePercent.SellRule IS NULL)
    ORDER BY ClientsOnePercent.SortOrder
    pvong

    Hunchback,
    Thanks so much.  This fixed it.  I can not believe I screwed that up.  I am learning.  One last question, what if the table already existed and I just want to add this to the existing table?  How would I do the Insert Into?
    I tried the following and got an error.  I made sure to take out the INTO TradesMoxyImport in the middle of your answer and it didn't work.
    All the columns are set up to match the Select statement.
    Insert INTO TradesMoxyImports;WITH ClientsTable
    AS (SELECT ClientID,
    Autex
    FROM Clients
    WHERE ( ActiveAcct = 'Active' )
    AND ( Directed = 'no' )
    AND ( Taxable LIKE '%' + '%' )),
    AxysPal
    AS (SELECT Autex,
    Quantity,
    PctAssets
    FROM AxysPals
    WHERE ( SecType = 'csus' )
    AND ( Ticker = 'ace' ))
    SELECT ClientsTable_1.Autex,
    ClientsOnePercent.SortOrder,
    CASE
    WHEN Round(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0) > Isnull(AxysPal_1.Quantity, 0) THEN Round(ClientsOnePercent.PctEqty * Round(AxysAUM.Total, 0) * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52 - Isnull(AxysPal_1.Quantity, 0), 0)
    END AS BuyQty,
    CASE
    WHEN Round(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0) < Isnull(AxysPal_1.Quantity, 0) THEN Round(Isnull(AxysPal_1.Quantity, 0) - ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0)
    END AS SellQty
    FROM ClientsOnePercent
    INNER JOIN ClientsTable AS ClientsTable_1
    ON ClientsOnePercent.ClientID = ClientsTable_1.ClientID
    INNER JOIN AxysAUM
    ON ClientsTable_1.Autex = AxysAUM.Autex
    LEFT OUTER JOIN AxysPal AS AxysPal_1
    ON ClientsOnePercent.Autex = AxysPal_1.Autex
    WHERE ( ClientsOnePercent.OnePctGroupID = 1 )
    AND ( ClientsOnePercent.BuyRule IS NULL )
    AND ( ClientsOnePercent.SellRule IS NULL )
    ORDER BY ClientsOnePercent.SortOrder
    pvong

  • Semi-Colon error when installing J2SE SDK

    Hello!
    When I try to install J2SE SDK I get error:
    "A path with semi-colon in it, is not supported for this product. Please select a directory path without a semi-colon."
    The path is:
    C:\j2sdk1.4.2_09\
    Please help!

    Use this installer
    http://www.microsoft.com/downloads/details.aspx?familyid=889482FC-5F56-4A38-B838-DE776FD4138C&displaylang=en
    That was usefull by me and ohters (forum where I find it), i was that problem when i re installed my XP SP2 with UE installer, any version of JSDK was fuctioning by me (1,4.. 1,6). then all was OK
    Try it
    http://www.microsoft.com/downloads/details.aspx?familyid=889482FC-5F56-4A38-B838-DE776FD4138C&displaylang=en

  • Regarding semi colon seperated file for upload

    Hi Friends,
    I have an requirement where in to upload text files from presentation server which is semi colon seperated.
    I am able to upload to the internal table using GUI_UPLOAD, but the problem is sometimes in the text file one line can be in two lines where in the system takes it as two different lines of records.
    Could anyone suggest a logic to correct this.

    Hi,
    Use the below blog, it may help you...
    http://abaplog.wordpress.com/2007/08/15/reading-a-comma-delimited-file-in-abap-aka-csv-file/
    http://www.kyusl.com/ilya/csv.html
    You may need to adopt it to parse semicolon.
    Regards
    Karthik D

  • Semi Colon in Authorization

    Hi,
    Can anyone explain the functionality of the Semi Colon (:)in Authorization Object. I have a requirement which demands the use of semi colon. Please let me know your suggestions on this.
    Sajan.M

    Hello Sajan,
    refer to :
    SAP Note Number: 727354
    Colon authorization during query execution
    Version: 2, Note Language: EN, Released on: 20.04.2004 
    Symptom
    You experience difficulties with colon authorization when you execute a query.
    Other terms
    Colon authorization
    Reason and Prerequisites
    You require colon authorization to view the values of an authorization-relevant characteristic in aggregated form. What does this mean exactly?
    Example:
    The 0COUNTRY characteristic is authorization-relevant and is contained in the InfoProvider used. You defined a query as follows:
    1. 0COUNTRY is in the free characteristics (not in the drilldown) without any selections
                  - or-
    1. 0COUNTRY is not used in the query.
    In both cases, no 0COUNTRY values appear in the query. Also, the query is not restricted to any 0COUNTRY values. The colon is required for the authorization check. You see the following message in the authorization log:
               "Check for ':' Added"
    Note the following:
    Case 2) is often overlooked: The authorization-relevant characteristic is not in the query, but rather in the InfoProvider. This does not mean that an authorization check does not take place on the characteristic. Since the key figures displayed are implicitly aggregated using all of the values for the characteristic, this must also be authorized.
    In a query, a selection can occur locally in a restricted key figure or in a structure. If the query contains other key figures, and this selection (or other selections) does not apply to these key figures, the colon is also required in the authorization.
    Solution
    If the above authorization problems occur, you must perform the following:
    1. If you want queries with no restrictions to run:
               Grant colon authorization to the user.
    1. If you do not want to grant colon authorization to the user:
                Restrict the characteristic in the query to a certain selection (single value, interval, hierarchy node, and so on) and authorize this selection explicitly.
    You must perform one of the above actions while the characteristic is being checked for authorizations.
    Other information
    The star authorization ('*') authorizes everything (of course, this also includes queries that require a colon).
    If the authorization-relevant characteristic is a navigation attribute (0COUSTOMER__0COUNTRY, for example), the behavior of the authorization check is not altered in any way. An exception occurs if the InfoObject appears both as a characteristic (0COUNTRY) and as a navigation attribute (0COUSTOMER__0COUNTRY) in the InfoProvider. You must then refer to note 642072.
    A colon authorization is not taken into account when you use a variable of the type "Fill from authorization", since it is not known at the time of the variable processing whether or not the affected characteristic is in the drilldown.
    Release Status Released for Customer
    Released on 20.04.2004
    Priority Recommendations/additional info
    Category Consulting
    Primary Component BW-BEX-OT-OLAP-AUT Authorizations
    Secondary Components BW-BEX-OT-OLAP Analyzing Data
    No attributes available 
    Soft. Component Release Track From Release To Release And Successors
    SAP_BW   30   30A   30B    
    SAP_BW   310   310   310    
    SAP_BW   35   350   350    
    No correction instruction available 
    No data available
    Number Short Text
    0000921820 Information about authorization concept of BW 3.X systems
    0000831700 BRAIN 655: No authorized data for F4 (input help)
    0000805855 Check on colon authorization despite selection condition
    0000790323 The log for reporting authorizations in BW
    0000789536 Enhancements of the authorization log
    0000642072 Authorization check on : for char./navigation attribute
    0000573725 Authorizations for documents for transaction data
    No attachments available
    SAP Notes / Patches corrected by this Note 
    No entries available
    The following SAP Notes correct this Note / Patch 
    No entries available

  • Multiple Artist, Genre... Separator (Semi-Colon) instead of Smart Playlists

    In my opinion, one of the greatest features of ID3 tags is the ability to use semi-colons to differentiate between multiple artists, genres, albums, etc... for any given field. This feature has been available since ID3 tags for MP3's were first implemented over a decade ago.
    With Windows Media Player 10, it's database was finally able to parse the information separated by semi-colons correctly. What this means is that if I have a song like "Picture" by Sheryl Crow and Kid Rock, in the ID3 tag, I type "Sheryl Crow; Kid Rock", and in WMP, if I click on Artist | Sheryl Crow, "Picture" appears. And if I click on Artist | Kid Rock, "Picture" appears. In fact, when I rip songs using WMP, it places semi-colons in numerous ID3 fields from the album description.
    In iTunes, however, when I import a song with a semi-colon in an ID3 tag field, the database reads the artist as "Sheryl Crow; Kid Rock", or essentially, it treats "Sheryl Crow; Kid Rock" as a THIRD artist. The same is true if I have a song that I feel crosses two genres--like "Picture". In WMP, if I put in the Genre field "Pop; Country", when I choose Genres | Pop, "Picture" appears, and when I choose Genres | Country, "Picture" appears.
    Does anyone know if a bug fix for this is in the works for iTunes? It seems Apple and iTunes have been trying to push Smart Playlists for this kind of organization, but that's the poor man's way of organizing songs and not nearly as efficient. I don't want to have to create Smart Playlist for all songs with "Sheryl Crow" in the artist field. It should be inherent based on the semi-colon.
    Does anyone know if anything smarter than Smart Playlists is in the works that matches the intuitiveness of Windows Media Player's database?
    Thanks,
    Bill

    Whereas in WMP & the ID3 spec. you would use a semi-colon to separate items you will find that iTunes & the Music store use a slash instead. However as you so rightly say iTunes takes the information and construes a new artist entity rather than two artists connected to the same track. (WMP might also respond to slash - I recall AC/DC always presenting issues so they exist as AC-DC in my library.)
    If you'd like to make feature request go to: iTunes Feedback.
    Working on the assumption that such ideas are unlikely to implemented any time soon however you might like to see my post on Grouping Tracks Into Albums which covers workarounds for this & other quirks.
    tt2

  • File containing semi-colon(;) cannot be loaded in JVue

    Hello,
    I am using AutoVue Client/Server Deployment 20.2.2 on Win7.
    I have file as "semi;colon.txt".
    When I launch autovue to load this file, I receive error as "Failed to upload file. File not found.".
    I have following OBJECT tag to launch autovue.
    <OBJECT ID="Viewer_Object">
      <PARAM NAME="JVUESERVER" VALUE="socket://server:5099;http://server/JVueIISFilters/VueServletIsapi.dll">
      <PARAM NAME="FILENAME" VALUE="upload:////server/Viewer/semi;colon.txt">
      <PARAM NAME="ARCHIVE" VALUE="jvue.jar,jogl.jar,gluegen-rt.jar">
      <PARAM NAME="GUIFILE" VALUE="default.gui">
      <PARAM NAME="EMBEDDED" VALUE="TRUE">
      <PARAM NAME="CODE" VALUE="com.cimmetry.jvue.JVue.class">
      <PARAM NAME="CODEBASE" VALUE="http://server/jvue">
    </OBJECT>
    I able to view files which do not have semi-colon in their file name.
    Will you please let me know, what went wrong here?
    Thanks,
    Kiran

    semi-colon is a separator in AutoVue, so that is a limitation
    Not sure why you would put a semi-colon on a file name, knowing that it is a separator for windows too.

  • EncodeURL - uses semi-colon or question mark in path?

    I am confused about the encodeURL method and how it formats urls when adding the session ID. It was my understanding that the sessionID is added as a path parameter, which means it becomes part of the query string following a "?" in the url, like so:
    www.mydomain.com/servlet/CheckOut?jsessionid=567
    However, the book I'm using (Java 2 Web Developer Certification Study Guide by Sybex), says that a semi-colon is used instead, like so:
    www.mydomain.com/servlet/CheckOut;jsessionid=567
    Which one is it? Or is this entirely server-dependent? Either way the next processing servlet needs to be able to access that ID using getPathInfo().

    encudeURL exactly does what you says
    www.mydomain.com/servlet/CheckOut;jsessionid=567
    I am also using the same book you use, it seems that you are preparing for the exam?
    Regards
    the exam?
    Regards

  • Semi-colon in URL from WebLogic 7.0

    Hello,
    We're running WebLogic 7.0 SP1 on two Sun Solaris 8 boxes clustered
    together with JDK 1.3.1_04 and all the necessary Sun patches to suite. The
    problem I have is that quite a few of our URLs are hardcoded to have a
    question mark (?) to begin a list of parameters, and then that gets encoded
    to include the SessionID at the end with an ampersand. That was in WebLogic
    5.1, now WebLogic 7.0 uses semi-colons to start the encoded URL, and my URLs
    that begin with a question mark are no longer valid and just comes up with a
    'Page Cannot Be Displayed' browser message. Anybody else experience this
    problem? How do I get around it?
    Many thanks!
    Dustin

    Hello,
    We're running WebLogic 7.0 SP1 on two Sun Solaris 8 boxes clustered
    together with JDK 1.3.1_04 and all the necessary Sun patches to suite. The
    problem I have is that quite a few of our URLs are hardcoded to have a
    question mark (?) to begin a list of parameters, and then that gets encoded
    to include the SessionID at the end with an ampersand. That was in WebLogic
    5.1, now WebLogic 7.0 uses semi-colons to start the encoded URL, and my URLs
    that begin with a question mark are no longer valid and just comes up with a
    'Page Cannot Be Displayed' browser message. Anybody else experience this
    problem? How do I get around it?
    Many thanks!
    Dustin

Maybe you are looking for

  • T61p exhibiting 1 long and 2 short beep and black screen

    All, There have been multiple discussions over the past months concerning a 1 long and 2 short beep symptom on some T61 and T61p model systems.   Over the last several weeks members have begun to start additional topics on this theme and cross post b

  • Dynamic creation of control

    Hi is it possible to create control buttons in run time based on the input given by the user.Do any one have the demo program

  • How can I import address books from Thunderbird to Mail?

    I had to use Thunderbird for all my Mail, because I cannot import about 10 different e-mail address lists with a total of about 300 addresses (contacts) into the Mail application nor into the Contacts Application.  Every other e-mail application, and

  • Line app crashes frequently in iOS 8

    I just downloaded iOS 8 via itunes with my phpne connected to my macbook. After updating, I find that my line App crashes a lot. I restarted my phone, and it still crashes, I tried closing all my apps including Line and restarting (for some reason th

  • Message : Document type doesnot allow you to assign  to object VBAP

    Hi All, I am attaching a document that is been created through CV01N to transaction VA02 at item level.when i am trying to put that document no. at item level on the Extras-Documents- system is giving me a message as "Document type doesnot allow you